MyraMath
Functions
random.h File Reference

Simplistic random number functions. More...

#include <myramath/utility/detail/LIBPUBLIC.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

int myra::random_int (int min, int max)
 Generates random integers, uniformly distribution between min/max-1.
 
int myra::random_int (int max)
 Generates random integers, uniformly distributed between 0 and max-1.
 
template<class Number >
Number myra::random ()
 Generate random real/complex Numbers, uniformly distributed over [-1,1].
 
template<class Precision >
Precision myra::random (Precision min, Precision max)
 Generates random real Numbers, uniformly distributed over [min,max].
 

Detailed Description

Simplistic random number functions.