Crate tinyrand

Crate tinyrand 

Source
Expand description

Traits describing a basic RNG and various capability extenders. The traits and RNGs here do not need stdlib to work, nor do they need alloc.

Re-exports§

pub use counter::Counter;
pub use splitmix::SplitMix;
pub use wyrand::Wyrand;
pub use xorshift::Xorshift;
pub use mock_support::RefCellExt;

Modules§

counter
A wrap-around 64-bit counter. Useful for seeding and testing.
duration
Extensions for generating random Durations.
mock_support
Supporting capabilities for mocking.
splitmix
SplitMix RNG.
wyrand
Wyrand RNG.
xorshift
Xorshift RNG.

Structs§

Probability
Represents a probability in the range [0, 1].

Traits§

Rand
A minimal specification of a random number generator.
RandLim
RandRange
Seeded
The means for seeding an RNG.

Type Aliases§

StdRand
The default/recommended Rand implementation.