Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
pcg_rand.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2021 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
13#ifndef __UTILS_PCG_RAND_H__
14#define __UTILS_PCG_RAND_H__
15
16#include <stdint.h>
17
18typedef struct PCGRand PCGRand;
19
20PCGRand *
21pcg_rand_new (void);
22
23/* unsigned float [0..1] */
24float
25pcg_rand_uf (PCGRand * self);
26
27/* signed float [-1..+1] */
28float
29pcg_rand_sf (PCGRand * self);
30
31uint32_t
32pcg_rand_u32 (PCGRand * self);
33
34#endif