class Random::MT19937
Superclass hierarchy
Object
Reference
Random::MT19937
Included Modules
Random
Defined in:
Constant Summary
LOWER_MASK
=
2147483647
M
=
397
MATRIX_A
=
2567483615
N
=
624
UPPER_MASK
=
2147483648
Class Method Summary
.new
(seed : Int)
.new
(seeds = StaticArray(UInt32, 4).new do Random.new_seed end)
Instance Method Summary
#next_u32
Class Method Detail
def self.
new
(seed :
Int
)
def self.
new
(seeds =
StaticArray
(
UInt32
,
4
).
new
do
Random
.new_seed
end
)
Instance Method Detail
def
next_u32