|
MULE 0.0.1
Multi-Use Library Essentials
|
A small, fast, seeded pseudo-random generator.
The generator is splitmix64, so the same seed gives the same sequence on every platform, unlike rand(). Use it for tests, simulations and shuffles, where a failure must be reproducible from its seed.
Data Structures | |
| struct | Rand |
| Generator state. More... | |
Functions | |
| uint64_t | rand_next (Rand *r) |
| The next 64 random bits. | |
| uint64_t | rand_below (Rand *r, uint64_t n) |
A uniform value in [0, n). | |
| struct Rand |