Rollup merge of #130811 - RalfJung:random, r=joboet
add link from random() helper fn to extensive DefaultRandomSource docs
This commit is contained in:
commit
3ee3e063c1
1 changed files with 2 additions and 1 deletions
|
|
@ -71,7 +71,8 @@ impl RandomSource for DefaultRandomSource {
|
|||
///
|
||||
/// This is a convenience function for `T::random(&mut DefaultRandomSource)` and
|
||||
/// will sample according to the same distribution as the underlying [`Random`]
|
||||
/// trait implementation.
|
||||
/// trait implementation. See [`DefaultRandomSource`] for more information about
|
||||
/// how randomness is sourced.
|
||||
///
|
||||
/// **Warning:** Be careful when manipulating random values! The
|
||||
/// [`random`](Random::random) method on integers samples them with a uniform
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue