Enhance documentation with usage examples for random number generation utilities

This commit is contained in:
Palash Tyagi
2025-08-03 16:45:00 +01:00
parent f99f78d508
commit 18b9eef063
5 changed files with 49 additions and 0 deletions

View File

@@ -1,3 +1,11 @@
//! A tiny XorShift64-based pseudo random number generator.
//!
//! ```
//! use rustframe::random::{rng, Rng};
//! let mut rng = rng();
//! let x = rng.next_u64();
//! assert!(x >= 0);
//! ```
use std::time::{SystemTime, UNIX_EPOCH};
use crate::random::Rng;