Skip to content

class Random::PCG32
inherits Reference

pcg32_random_r: - result: 32-bit unsigned int (uint32_t) - period: 2^64 (* 2^63 streams) - state type: pcg32_random_t (16 bytes) - output func: XSH-RR

Included modules

Random

Constants

PCG_DEFAULT_MULTIPLIER_64 = 6364136223846793005_u64

Class methods

.new(initstate : UInt64, initseq = 0_u64)

View source

Methods

#jump(delta)

View source

#new_seed(initstate : UInt64, initseq = 0_u64)

View source

#new_seed

View source

#next_u

Generates a random unsigned integer.

The integers must be uniformly distributed between 0 and the maximal value for the chosen type.

View source