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 <cstdint>
17
18
typedef
struct
PCGRand PCGRand;
19
20
PCGRand *
21
pcg_rand_new (
void
);
22
23
/* unsigned float [0..1] */
24
float
25
pcg_rand_uf (PCGRand * self);
26
27
/* signed float [-1..+1] */
28
float
29
pcg_rand_sf (PCGRand * self);
30
31
uint32_t
32
pcg_rand_u32 (PCGRand * self);
33
34
#endif
utils
pcg_rand.h
Generated by
1.11.0