epoch_rng
A lightweight psudo random number generator library for Rust featuring:
• Epoch‑seeded RNG
• Configurable Linear Congruential Generator (LCG)
• Simple API
• No external dependencies
This crate is intended for lightweight simulations, games, and experimentation where a fast and simple RNG is useful.
⚠️ Not cryptographically secure.
Installation
Usage
use EpochRng;
Shuffle Example
use EpochRng;
LCG RNG
use LcgRng;
Features
Current RNG implementations:
• EpochRng – seeded from system epoch time
• LcgRng – configurable linear congruential generator
Both support:
next_u64next_u32next_f64- range generation
- shuffling
Future Plans
Possible improvements:
no_stdsupport- additional algorithms (XorShift, PCG, Xoshiro)