Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: RZ_A2M_Mbed_samples
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
Generated on Tue Jul 12 2022 18:20:23 by
