Skip to content

Commit 40a9c5c

Browse files
committed
Improve gen-range doc
Fix #167 and #248
1 parent 1591ead commit 40a9c5c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,13 +509,14 @@ pub trait Rng {
509509
Generator { rng: self, _marker: marker::PhantomData }
510510
}
511511

512-
/// Generate a random value in the range [`low`, `high`).
512+
/// Generate a random value in the range [`low`, `high`), i.e. inclusive of
513+
/// `low` and exclusive of `high`.
513514
///
514515
/// This is a convenience wrapper around
515516
/// `distributions::Range`. If this function will be called
516517
/// repeatedly with the same arguments, one should use `Range`, as
517518
/// that will amortize the computations that allow for perfect
518-
/// uniformity, as they only happen on initialization.
519+
/// uniformity, as they only happen when constructing the `Range`.
519520
///
520521
/// # Panics
521522
///

0 commit comments

Comments
 (0)