class Cxs::XorShift32

Defined in:

cxs.cr

Constructors

Instance Method Summary

Instance methods inherited from class Cxs::XorShift

next_u next_u

Constructor Detail

def self.new(state : Array(UInt32) = make_seed) #

[View source]

Instance Method Detail

def next_u #
Description copied from module Random

Generates a random unsigned integer.

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


[View source]