module Alea::PRNG(S32, S64)
Overview
Alea::PRNG
is the module all PRNGs include in order to work with Alea::Random
.
As long as it includes the Alea::PRNG
module, you can build your own generator: check
out the example provided in
the documentation to make it a valid extension for Alea::Random
.
Direct including types
Defined in:
Constructors
-
.new(seed32 : S32, seed64 : S64)
Must initialize states from seeds.
Instance Method Summary
-
#next_f32 : Float32
Generate a uniform-distributed random
Float32
in[0, 1)
. -
#next_f64 : Float64
Generate a uniform-distributed random
Float64
in[0, 1)
. -
#next_i32 : Int32
Generate a uniform-distributed random
Int32
in rangeInt32::MIN..Int32::MAX
. -
#next_i64 : Int64
Generate a uniform-distributed random
Int64
in rangeInt64::MIN..Int64::MAX
. -
#next_u32 : UInt32
Must return an uniform-distributed
UInt32
. -
#next_u64 : UInt64
Must return an uniform-distributed
UInt64
.