Zafu/Testing/HedgeHog/Seedsource code:
Seed, UInt64choose_Float64, choose_Int, from_Int, next, to_Float64, to_IntSeedHedgeHog generator seed backed by local xoshiro256** state.
type Seed
UInt64Unsigned 64-bit sample value emitted by the HedgeHog PRNG.
type UInt64
choose_Float64Sample a Float64 uniformly from the half-open interval [lower, upper).
references: Float64,
Seed, Tuple2
def choose_Float64(seed: Seed, lower: Float64, upper: Float64) -> (Seed, Float64)
choose_IntSample an integer uniformly from an inclusive range.
def choose_Int(seed: Seed, lower: Int, upper: Int) -> (Seed, Int)
from_IntBuild a non-zero seed from an integer.
def from_Int(i: Int) -> Seed
nextXoshiro256** over the same 4x64-bit state shape as Bosatsu/Rand, but exposed locally so HedgeHog no longer depends on Bosatsu/Rand. Advance the PRNG and return the next seed plus one 64-bit sample.
references: Seed, Tuple2,
UInt64
def next(seed: Seed) -> (Seed, UInt64)
to_Float64Convert a UInt64 sample into a non-negative Float64 value.
def to_Float64(value: UInt64) -> Float64
to_IntExpose the raw integer bits of a UInt64 sample.
def to_Int(value: UInt64) -> Int