justrng
Non-cryptographic RNG for people who just want to generate random numbers for applications or procedural generation.
Seed generation
This crate uses web_time to seed the rng when compiling for wasm, and
getrandom on other platforms. It will only do this once per thread, and
will instantiate future seeds by updating a thread-local state.
Seeds can be generated manually with the seed module.
Vector support
Permutation and WyRand support generating and mixing
vectors when the glam feature is enabled.
WyRand
The main RNG exported by this module is WyRand, complete with hash generation for all primitives, generating in a range, and shuffling slices.
Permutation
An index-based rng that is lower quality than WyRand, but is very fast. Permutations are primarily used in procedural generation to hash vector coordinates. Unlike standard RNGs, Permutations do not update any state when they are used. It will produce the same value every time if the mix input (and seed) is the same.
use IVec3;