Provides random number generator classes. More...
#include "Macros.h"
#include "Types.h"
#include "RTime.h"
#include "Data1D.h"
#include "RStr.h"
#include "File.h"
#include <stdio.h>
Go to the source code of this file.
Classes | |
class | RC::BaseRND |
An abstract class which provides functions for obtaining randomness in convenient forms. More... | |
class | RC::RND |
A Mersenne Twister random number generator class with integer, array, or time-based seeding. More... | |
class | RC::EntropyRND |
Provides true random numbers sourced from environmental noise. More... | |
class | RC::URand |
Cryptographically strong RNG, uses /dev/urandom. More... | |
Namespaces | |
RC | |
Macros | |
#define | RC_MAKE_GET_RANGE(classname) |
Generates a family of RND_Get_Range functions. More... | |
#define | RC_MAKE_RND_GEN(classname) |
Generates a family of random generator singletons. More... | |
Functions | |
u64 | RC::RND_Get_Range (u64 range) |
Uses RND as a RandomNumberGenerator, e.g. for random_shuffle. More... | |
u64 | RC::EntropyRND_Get_Range (u64 range) |
Uses EntropyRND as a RandomNumberGenerator, e.g. for random_shuffle. More... | |
u64 | RC::URand_Get_Range (u64 range) |
Uses URand as a RandomNumberGenerator, e.g. for random_shuffle. More... | |
RND & | RC::RND_Gen () |
This returns a singleton of RND . | |
EntropyRND & | RC::EntropyRND_Gen () |
This returns a singleton of EntropyRND . | |
URand & | RC::URand_Gen () |
This returns a singleton of URand . | |
Provides random number generator classes.
#define RC_MAKE_GET_RANGE | ( | classname | ) |
Generates a family of RND_Get_Range functions.
#define RC_MAKE_RND_GEN | ( | classname | ) |
Generates a family of random generator singletons.