We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1591ead commit 40a9c5cCopy full SHA for 40a9c5c
src/lib.rs
@@ -509,13 +509,14 @@ pub trait Rng {
509
Generator { rng: self, _marker: marker::PhantomData }
510
}
511
512
- /// Generate a random value in the range [`low`, `high`).
+ /// Generate a random value in the range [`low`, `high`), i.e. inclusive of
513
+ /// `low` and exclusive of `high`.
514
///
515
/// This is a convenience wrapper around
516
/// `distributions::Range`. If this function will be called
517
/// repeatedly with the same arguments, one should use `Range`, as
518
/// that will amortize the computations that allow for perfect
- /// uniformity, as they only happen on initialization.
519
+ /// uniformity, as they only happen when constructing the `Range`.
520
521
/// # Panics
522
0 commit comments