mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-11-23 19:16:10 +00:00
Enhance documentation with usage examples for random number generation utilities
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user