Qualia  0.2
Functions
random.h File Reference
#include <qualia/core/common.h>
#include <limits.h>
#include <stdlib.h>
Include dependency graph for random.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

float randomUniform ()
 Generates a uniform random number on [0,1[. More...
 
float randomUniform (float h)
 Generates a uniform random number on [0,h[. More...
 
float randomUniform (float a, float b)
 Generates a uniform random number on [a,b[ (b>a). More...
 

Function Documentation

float randomUniform ( )

Generates a uniform random number on [0,1[.

Provides methods for generating uniform random numbers.

float randomUniform ( float  h)

Generates a uniform random number on [0,h[.

float randomUniform ( float  a,
float  b 
)

Generates a uniform random number on [a,b[ (b>a).