|
MorphoGraphX
2.0-1-227
|
Go to the source code of this file.
Namespaces | |
| mgx | |
| Distributed matrix library. | |
Functions | |
| mgx_EXPORT unsigned int | mgx::sran_time () |
| Initialize the random number with the current time of the day (in microsecond) More... | |
| mgx_EXPORT void | mgx::sran (unsigned int seed) |
| Initialize the random number generator. More... | |
| mgx_EXPORT double | mgx::ran (double M) |
| Generate a random number uniformly distributed between 0 and M. More... | |
| mgx_EXPORT long double | mgx::ran (long double M) |
| Generate a random number uniformly distributed between 0 and M. More... | |
| mgx_EXPORT float | mgx::ran (float M) |
| Generate a random number uniformly distributed between 0 and M. More... | |
| template<typename T > | |
| double | mgx::ran (T M) |
| Generate a random number uniformly distributed between 0 and M. More... | |
| template<size_t dim, typename T > | |
| Vector< dim, T > | mgx::ran (const Vector< dim, T > &V) |
| Generate a random vector uniformely distributed between Vector(0) and V. More... | |
| mgx_EXPORT double | mgx::gaussRan (double mean, double sigma) |
| Generate a random number with gaussian distribution. More... | |
| template<size_t dim> | |
| Vector< dim, double > | mgx::gaussRan (const Vector< dim, double > &mean, const Vector< dim, double > &sigma) |
| Generate a random vector with gaussian distribution. More... | |
| mgx_EXPORT long int | mgx::ranInt () |
| Returns a random number between 0 and RAND_MAX. More... | |
| mgx_EXPORT long int | mgx::ranInt (long int n) |
| Returns a random number between 0 and n (excluded), for n <= RAND_MAX. More... | |
| template<size_t dim, typename T > | |
| Vector< dim, T > | mgx::ranInt (const Vector< dim, T > &n) |
| Returns a vector of random numbers. More... | |
Defines various functions to generate random numbers
Definition in file Random.hpp.
1.8.17