Crate randomize[−][src]
A dead simple to use randomization library for rust.
NOT FOR CRYPTOGRAPHIC PURPOSES.
The crate is specific to my personal needs for building small games and such. I don't want to or try to cover all use cases. If you need a highly general crate for randomization you should use the rand crate, which is the "official" way to do randomization in rust.
Structs
PCG32 |
A Permuted Congruential Generator that generates 32 bits of output per use. |
RandRangeU32 |
A random range that produces |
RandRangeUsize |
A random range that produces |
Constants
d4 |
A constant for rolling a 1d4 |
d6 |
A constant for rolling a 1d6 |
d8 |
A constant for rolling a 1d8 |
d10 |
A constant for rolling a 1d10 |
d12 |
A constant for rolling a 1d12 |
d20 |
A constant for rolling a 1d20 |
Traits
RefDistribution |
Trait for types that can perform a random distribution via |
Functions
global_gen |
Gets you a |
u64_from_time |
Produces a |