Creates RNG with set seed
Alias to std.random default seed
Typed alias to get random value between 0 and T.max or custom min and max
Typed alias to get random value between 0 and T.max or custom min and max
Alias to std.random unpredictable seed
Randomizes seed
Typed alias to get random value between 0 and T.max or custom min and max
Returns random uint
Randomizes seed
Skips current random value
Skips N amount of random values
Sets custom seed p_seed
Returns current seed
// Creates rng with default seed RNG rng = RNG(); // Creates rng with custom seed rng = RNG(2511244); // Assigns random seed to seed rng.randomize(); // Returns random uint rnd.random(); // Returns random float in range of 0..float.max randf(); // Returns random float in rangle of 4..20 randf(4, 20); // Returns random ulong in range of 0..ulong.max rand!ulong();
Random number generator