Miam-Player  0.8.0
A nice music player
lfg.h File Reference

Go to the source code of this file.

Classes

struct  AVLFG
 

Typedefs

typedef struct AVLFG AVLFG
 

Functions

void av_lfg_init (AVLFG *c, unsigned int seed)
 
void av_bmg_get (AVLFG *lfg, double out[2])
 

Typedef Documentation

◆ AVLFG

typedef struct AVLFG AVLFG

Function Documentation

◆ av_bmg_get()

void av_bmg_get ( AVLFG lfg,
double  out[2] 
)

Get the next two numbers generated by a Box-Muller Gaussian generator using the random numbers issued by lfg.

Parameters
outarray where the two generated numbers are placed

◆ av_lfg_init()

void av_lfg_init ( AVLFG c,
unsigned int  seed 
)