Skip to content

Commit

Permalink
v 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
liborty committed Dec 20, 2023
1 parent 28e83f3 commit 381e2d4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,7 @@ pub fn ran_f64() -> f64 {
result
}

/// Generate an u64 random number in the RangeInclusive min..=max.
/// /// # Example
/// ```
/// set_seeds(1234567);
/// // Roll of the classical die [1,6]:
/// assert_eq!(6,ran_urange(1..=6));
/// ```
/// Generate an u64 random number in the RangeInclusive min..=max
pub fn ran_u64_range(r: RangeInclusive<u64>) -> u64 {
(ran_u64() % (1 + r.end() - r.start())) + r.start()
}
Expand Down

0 comments on commit 381e2d4

Please sign in to comment.