- `rand::random()` uses a thread-local generator but can be slower than necessary. - **Fix:** Use `SmallRng` or `XorShift` initialized once per thread for faster generation.