Renesas / opencv-lib

Dependents:   RZ_A2M_Mbed_samples

Embed: (wiki syntax)

« Back to documentation index

RNG_MT19937 Class Reference

RNG_MT19937 Class Reference
[Operations on arrays]

Mersenne Twister random number generator. More...

#include <core.hpp>

Public Member Functions

int uniform (int a, int b)
 returns uniformly distributed integer random number from [a,b) range
float uniform (float a, float b)
 returns uniformly distributed floating-point random number from [a,b) range
double uniform (double a, double b)
 returns uniformly distributed double-precision floating-point random number from [a,b) range

Detailed Description

Mersenne Twister random number generator.

Inspired by http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/CODES/mt19937ar.c

Definition at line 2844 of file core.hpp.


Member Function Documentation

int uniform ( int  a,
int  b 
)

returns uniformly distributed integer random number from [a,b) range

double uniform ( double  a,
double  b 
)

returns uniformly distributed double-precision floating-point random number from [a,b) range

float uniform ( float  a,
float  b 
)

returns uniformly distributed floating-point random number from [a,b) range