Skip to content

Commit

Permalink
Improve gen-range doc
Browse files Browse the repository at this point in the history
Fix #167 and #248
  • Loading branch information
dhardy committed Jan 30, 2018
1 parent 85f4cf7 commit 522a28c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,13 +509,14 @@ pub trait Rng {
Generator { rng: self, _marker: marker::PhantomData }
}

/// Generate a random value in the range [`low`, `high`).
/// Generate a random value in the range [`low`, `high`), i.e. inclusive of
/// `low` and exclusive of `high`.
///
/// This is a convenience wrapper around
/// `distributions::Range`. If this function will be called
/// repeatedly with the same arguments, one should use `Range`, as
/// that will amortize the computations that allow for perfect
/// uniformity, as they only happen on initialization.
/// uniformity, as they only happen when constructing the `Range`.
///
/// # Panics
///
Expand Down

0 comments on commit 522a28c

Please sign in to comment.