Module mini_functions::random
source · 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
- The
macros
module contains functions for generating macros. - The
mersenne_twister
module contains the implementation of the Mersenne Twister algorithm. - The
macros
module contains functions for generating macros.
Macros
- Generate a random boolean with a provided probability.
- Generate a vector of random bytes with the provided length using the provided
Random (VRD)
struct - Generate a random char within the range ‘a’..=‘z’ using the provided
Random (VRD)
struct - Generate a random element from a slice of values using the provided
Random (VRD)
struct - Generate a random double using the provided
Random (VRD)
struct - Generate a random float using the provided
Random (VRD)
struct - Generate a random integer within the given range using the provided
Random (VRD)
struct - Generate a new random number
- Generate a random 32-bit unsigned integer using the provided
Random (VRD)
struct - Generate a random number within the given range using the provided
Random (VRD)
struct - Seed the provided
Random (VRD)
struct with the given value - Twist the state of the provided
Random (VRD)
struct - Generate a random 32-bit unsigned integer within the given range using the provided
Random (VRD)
struct - Generate a random 32-bit unsigned integer within the given range using the provided
Random (VRD)
struct
Structs
- Configuration for the Mersenne Twister algorithm.
- The
Random
struct is used to generate random numbers using the Mersenne Twister algorithm.
Functions
- The main entry point for the
Random (VRD)
library.