Expand description
Features high-quality random number generation using the Mersenne Twister algorithm. Application random number generation functionality
Provides access to functions for generating high-quality random numbers based on the Mersenne Twister algorithm.
Modules§
- macros
- The
macros
module contains functions for generating macros. - mersenne_
twister - The
mersenne_twister
module contains the implementation of the Mersenne Twister algorithm. - vrd_
macros - The
macros
module contains functions for generating macros.
Macros§
- rand_
bool - Generate a random boolean with a provided probability.
- rand_
bytes - Generate a vector of random bytes with the provided length using the
provided
Random (VRD)
struct - rand_
char - Generate a random char within the range ‘a’..=‘z’ using the provided
Random (VRD)
struct - rand_
choose - Generate a random element from a slice of values using the provided
Random (VRD)
struct - rand_
double - Generate a random double using the provided
Random (VRD)
struct - rand_
float - Generate a random float using the provided
Random (VRD)
struct - rand_
int - Generate a random integer within the given range using the provided
Random (VRD)
struct - rand_
new - Generate a new random number
- rand_
pseudo - Generate a random 32-bit unsigned integer using the provided
Random (VRD)
struct - rand_
range - Generate a random number within the given range using the provided
Random (VRD)
struct - rand_
seed - Seed the provided
Random (VRD)
struct with the given value - rand_
twist - Twist the state of the provided
Random (VRD)
struct - rand_
uint - Generate a random 32-bit unsigned integer within the given range
using the provided
Random (VRD)
struct - random_
range - Generate a random 32-bit unsigned integer within the given range
using the provided
Random (VRD)
struct
Structs§
- Mersenne
Twister Config - Configuration for the Mersenne Twister algorithm.
- Random
- The
Random
struct is used to generate random numbers using the Mersenne Twister algorithm.
Functions§
- run
- The main entry point for the
Random (VRD)
library.