Random (VRD) 🦀 v0.0.3
Release v0.0.3 - 2023-05-10
Random (VRD) v0.0.3 🦀
A Rust library for generating high-quality random numbers based on the
Mersenne Twister algorithm.
Part of the Mini Functions family of libraries.
• Website • Documentation • Report Bug • Request Feature • Contributing Guidelines
Overview 📖
Random (VRD)
is a Rust library for generating high-quality random numbers based on the Mersenne Twister algorithm.
The Mersenne Twister is a pseudorandom number generator (PRNG) that is often used in computer simulations and games. It is a fast and reliable PRNG.
The Random (VRD) is used to generate random numbers using the Mersenne Twister algorithm. It generates pseudorandom integers uniformly distributed in 0..(2^32 - 1) starting from any odd seed in 0..(2^32 - 1).
The index is incremented after each random number is generated. When the index reaches 624, the array is reinitialized and the index is reset to 0.
Features ✨
- Create new random number generator and seed it with a value.
- Design for speed and efficiency in mind.
- Generate random 32-bit unsigned integer within a given range.
- Provide random numbers of different types, including booleans, bytes, chars, doubles, floats, integers, and unsigned integers.
- Mutate the state of the random number generator.
- Produce pseudo-random number sequences that are different from each other.
- Regulate the randomness of the generated numbers, including the seed value and the number of bits used.
- Select a random element from a slice of values.
Changelog 📚
- Merge pull request #5 from sebastienrousseau/feat/vrd
- fix(vrd): invalid upload request: invalid value: string by @sebastienrousseau in #3
- feat(vrd): preparing v0.0.3 by @sebastienrousseau in #5
Full Changelog: v0.0.2...v0.0.3