We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72af6f8 commit 856fdfbCopy full SHA for 856fdfb
src/distributions/mod.rs
@@ -173,6 +173,12 @@ mod utils;
173
/// advantage of not needing to consider thread safety, and for most
174
/// distributions efficient state-less sampling algorithms are available.
175
///
176
+/// Implementations are typically expected to be portable with reproducible
177
+/// results when used with a PRNG with fixed seed; see the
178
+/// [portability chapter](https://rust-random.github.io/book/portability.html)
179
+/// of The Rust Rand Book. In some cases this does not apply, e.g. the `usize`
180
+/// type requires different sampling on 32-bit and 64-bit machines.
181
+///
182
/// [`sample_iter`]: Distribution::method.sample_iter
183
pub trait Distribution<T> {
184
/// Generate a random value of `T`, using `rng` as the source of randomness.
0 commit comments