Ardour
9.0-pre0-582-g084a23a80d
|
#include <pcg_rand.h>
Public Member Functions | |
PCGRand () | |
uint32_t | rand_u32 () |
int | rand (int max, int min=0) |
float | rand_uf () |
float | rand_sf () |
Private Attributes | |
uint64_t | _state |
uint64_t | _inc |
int | _foo |
Really minimal PCG32 code / (c) 2014 M.E. O'Neill / pcg-random.org
To be used in cases where an efficient and realtime-safe random generator is needed.
Definition at line 33 of file pcg_rand.h.
PBD::PCGRand::PCGRand | ( | ) |
int PBD::PCGRand::rand | ( | int | max, |
int | min = 0 |
||
) |
|
inline |
Definition at line 51 of file pcg_rand.h.
uint32_t PBD::PCGRand::rand_u32 | ( | ) |
|
inline |
Definition at line 45 of file pcg_rand.h.
|
private |
Definition at line 59 of file pcg_rand.h.
|
private |
Definition at line 58 of file pcg_rand.h.
|
private |
Definition at line 57 of file pcg_rand.h.