MuseScore  3.4
Music composition and notation
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
Rngen Class Reference

#include <rngen.h>

Public Member Functions

 Rngen (void)
 
void init (uint32_t seed)
 
uint32_t irand (void)
 
double urand (void)
 
double grand (void)
 
void grand (double *x, double *y)
 
float urandf (void)
 
float grandf (void)
 
void grandf (float *x, float *y)
 
 ~Rngen (void)
 
 Rngen (const Rngen &)
 
Rngenoperator= (const Rngen &)
 

Private Attributes

uint32_t _a [55]
 
int _i
 
bool _md
 
bool _mf
 
double _vd
 
float _vf
 

Static Private Attributes

static const double _p31 = 2147483648.0
 
static const double _p32 = 4294967296.0
 
static const float _p31f = 2147483648.0f
 
static const float _p32f = 4294967296.0f
 

Constructor & Destructor Documentation

◆ Rngen() [1/2]

Rngen::Rngen ( void  )

◆ ~Rngen()

Rngen::~Rngen ( void  )

◆ Rngen() [2/2]

Rngen::Rngen ( const Rngen )

Member Function Documentation

◆ grand() [1/2]

double Rngen::grand ( void  )

◆ grand() [2/2]

void Rngen::grand ( double *  x,
double *  y 
)

◆ grandf() [1/2]

float Rngen::grandf ( void  )

◆ grandf() [2/2]

void Rngen::grandf ( float *  x,
float *  y 
)

◆ init()

void Rngen::init ( uint32_t  seed)

◆ irand()

uint32_t Rngen::irand ( void  )
inline

◆ operator=()

Rngen& Rngen::operator= ( const Rngen )

◆ urand()

double Rngen::urand ( void  )
inline

◆ urandf()

float Rngen::urandf ( void  )
inline

Member Data Documentation

◆ _a

uint32_t Rngen::_a[55]
private

◆ _i

int Rngen::_i
private

◆ _md

bool Rngen::_md
private

◆ _mf

bool Rngen::_mf
private

◆ _p31

const double Rngen::_p31 = 2147483648.0
staticprivate

◆ _p31f

const float Rngen::_p31f = 2147483648.0f
staticprivate

◆ _p32

const double Rngen::_p32 = 4294967296.0
staticprivate

◆ _p32f

const float Rngen::_p32f = 4294967296.0f
staticprivate

◆ _vd

double Rngen::_vd
private

◆ _vf

float Rngen::_vf
private

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