Skip to main content

Crate minstd

Crate minstd 

Source
Expand description

§MINSTD

Lehmer “minimum standard” random number generator.

This crate have no dependencies and can be used without standard library by activating feature no-std.

This is free and unencumbered software released into the public domain.

Structs§

MINSTD
MINSTD
MINSTD0
MINSTD0 mcg16807 / 1988 version

Constants§

M
modulus M = 2^31 - 1
MAX
maximum generated value
MIN
minimum generated value
SEED
initial seed.

Functions§

clamp_seed
clamps seed into valid range for generator.
validate_seed
Validate if supplied integer is in valid range of seeds for generator.