Ardour  8.7-15-gadf511264b
PBD::PCGRand Class Reference

#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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PCGRand()

PBD::PCGRand::PCGRand ( )

Member Function Documentation

◆ rand()

int PBD::PCGRand::rand ( int  max,
int  min = 0 
)

◆ rand_sf()

float PBD::PCGRand::rand_sf ( )
inline

Definition at line 51 of file pcg_rand.h.

◆ rand_u32()

uint32_t PBD::PCGRand::rand_u32 ( )

◆ rand_uf()

float PBD::PCGRand::rand_uf ( )
inline

Definition at line 45 of file pcg_rand.h.

Member Data Documentation

◆ _foo

int PBD::PCGRand::_foo
private

Definition at line 59 of file pcg_rand.h.

◆ _inc

uint64_t PBD::PCGRand::_inc
private

Definition at line 58 of file pcg_rand.h.

◆ _state

uint64_t PBD::PCGRand::_state
private

Definition at line 57 of file pcg_rand.h.


The documentation for this class was generated from the following file: