From f43b11488389e42c1e80489eaba1c7133e827209 Mon Sep 17 00:00:00 2001 From: Diggory Hardy Date: Mon, 25 Mar 2024 09:07:14 +0000 Subject: [PATCH] Links: prefer docs.rs over rust-random.github.io We should point users to docs for the latest release. --- src/crates-gen.md | 4 +-- src/crates-rand.md | 34 ++++++++++++------------ src/crates.md | 12 ++++----- src/guide-cargo.md | 2 +- src/guide-data.md | 6 ++--- src/guide-dist.md | 56 +++++++++++++++++++-------------------- src/guide-err.md | 12 ++++----- src/guide-gen.md | 2 +- src/guide-process.md | 6 ++--- src/guide-rngs.md | 30 ++++++++++----------- src/guide-seeding.md | 14 +++++----- src/guide-seq.md | 40 ++++++++++++++-------------- src/guide-start.md | 28 ++++++++++---------- src/guide-values.md | 22 ++++++++-------- src/guide.md | 2 +- src/overview.md | 54 +++++++++++++++++++------------------- src/update-0.6.md | 20 +++++++------- src/update-0.7.md | 40 ++++++++++++++-------------- src/update-0.8.md | 62 ++++++++++++++++++++++---------------------- 19 files changed, 223 insertions(+), 223 deletions(-) diff --git a/src/crates-gen.md b/src/crates-gen.md index 70c45a8..c6a8480 100644 --- a/src/crates-gen.md +++ b/src/crates-gen.md @@ -40,10 +40,10 @@ The following crates implement pseudo-random number generators - [`rand_xorshift`] implements the basic Xorshift generator -[`rand_chacha`]: https://rust-random.github.io/rand/rand_chacha/index.html +[`rand_chacha`]: https://docs.rs/rand_chacha/ [`rand_hc`]: https://docs.rs/rand_hc/ [`rand_isaac`]: https://docs.rs/rand_isaac/ -[`rand_pcg`]: https://rust-random.github.io/rand/rand_pcg/index.html +[`rand_pcg`]: https://docs.rs/rand_pcg/ [`rand_xoshiro`]: https://docs.rs/rand_xoshiro/ [`rand_xorshift`]: https://docs.rs/rand_xorshift/ [`rand_jitter`]: https://docs.rs/rand_jitter/ diff --git a/src/crates-rand.md b/src/crates-rand.md index f3d2fac..34db0f6 100644 --- a/src/crates-rand.md +++ b/src/crates-rand.md @@ -50,20 +50,20 @@ number distributions: uniform and weighted sampling. For everything else, [common feature flags]: crates.md#feature-flags -[`rand_core`]: https://rust-random.github.io/rand/rand_core/index.html -[`rand`]: https://rust-random.github.io/rand/rand/index.html -[`rand_distr`]: https://rust-random.github.io/rand/rand_distr/index.html -[`statrs`]: https://github.com/boxtown/statrs - -[`RngCore`]: https://rust-random.github.io/rand/rand_core/trait.RngCore.html -[`SeedableRng`]: https://rust-random.github.io/rand/rand_core/trait.SeedableRng.html -[`CryptoRng`]: https://rust-random.github.io/rand/rand_core/trait.CryptoRng.html -[`Error`]: https://rust-random.github.io/rand/rand_core/struct.Error.html - -[`rngs`]: https://rust-random.github.io/rand/rand/rngs/index.html -[`distributions`]: https://rust-random.github.io/rand/rand/distributions/index.html -[`seq`]: https://rust-random.github.io/rand/rand/seq/index.html -[`Rng`]: https://rust-random.github.io/rand/rand/trait.Rng.html -[`random`]: https://rust-random.github.io/rand/rand/fn.random.html - -[`SmallRng`]: https://rust-random.github.io/rand/rand/rngs/struct.SmallRng.html +[`rand_core`]: https://docs.rs/rand_core/ +[`rand`]: https://docs.rs/rand/ +[`rand_distr`]: https://docs.rs/rand_distr/ +[`statrs`]: https://docs.rs/statrs/ + +[`RngCore`]: https://docs.rs/rand_core/latest/rand_core/trait.RngCore.html +[`SeedableRng`]: https://docs.rs/rand_core/latest/rand_core/trait.SeedableRng.html +[`CryptoRng`]: https://docs.rs/rand_core/latest/rand_core/trait.CryptoRng.html +[`Error`]: https://docs.rs/rand_core/latest/rand_core/struct.Error.html + +[`rngs`]: https://docs.rs/rand/latest/rand/rngs/ +[`distributions`]: https://docs.rs/rand/latest/rand/distributions/ +[`seq`]: https://docs.rs/rand/latest/rand/seq/ +[`Rng`]: https://docs.rs/rand/latest/rand/trait.Rng.html +[`random`]: https://docs.rs/rand/latest/rand/fn.random.html + +[`SmallRng`]: https://docs.rs/rand/latest/rand/rngs/struct.SmallRng.html diff --git a/src/crates.md b/src/crates.md index 9d7221b..72735e6 100644 --- a/src/crates.md +++ b/src/crates.md @@ -40,7 +40,7 @@ Some Rand crates can be built with support for the following third-party crates: Note that cryptographic RNGs *do not* support serialisation since this could be a security risk. If you need state-restore functionality on a cryptographic RNG, -the ChaCha generator supports [getting and setting the stream position](https://rust-random.github.io/rand/rand_chacha/struct.ChaCha20Rng.html#method.get_word_pos), +the ChaCha generator supports [getting and setting the stream position](https://docs.rs/rand_chacha/latest/rand_chacha/struct.ChaCha20Rng.html#method.get_word_pos), which, together with the seed, can be used to reconstruct the generator's state. ## WASM support @@ -58,12 +58,12 @@ to disable the `rand` crate's `getrandom` feature and seed the generator manually. -[`rand_core`]: https://rust-random.github.io/rand/rand_core/index.html -[`rand`]: https://rust-random.github.io/rand/rand/index.html -[`rand_distr`]: https://rust-random.github.io/rand/rand_distr/index.html -[`statrs`]: https://github.com/boxtown/statrs +[`rand_core`]: https://docs.rs/rand_core/ +[`rand`]: https://docs.rs/rand/ +[`rand_distr`]: https://docs.rs/rand_distr/ +[`statrs`]: https://docs.rs/statrs/ [`getrandom`]: https://docs.rs/getrandom/ -[`rand_chacha`]: https://rust-random.github.io/rand/rand_chacha/index.html +[`rand_chacha`]: https://docs.rs/rand_chacha/ [`rand_xoshiro`]: https://docs.rs/rand_xoshiro/ [`log`]: https://docs.rs/log/ [`serde`]: https://serde.rs/ diff --git a/src/guide-cargo.md b/src/guide-cargo.md index 20c6156..70aeec9 100644 --- a/src/guide-cargo.md +++ b/src/guide-cargo.md @@ -22,7 +22,7 @@ Cargo will normally install the latest matching version when the dependency is first added. Dependencies may be updated later via `cargo update`, and in some cases running `cargo update` can solve dependency problems. -For more on Cargo, see [The Cargo Book](https://doc.rust-lang.org/cargo/index.html). +For more on Cargo, see [The Cargo Book](https://doc.rust-lang.org/cargo/). ## Other crates diff --git a/src/guide-data.md b/src/guide-data.md index a60e7da..088d88a 100644 --- a/src/guide-data.md +++ b/src/guide-data.md @@ -87,6 +87,6 @@ often the other way around — algorithmic generators usually work with integers internally, which are then converted to whichever form of random data is required.) -[`RngCore::fill_bytes`]: ../rand/rand_core/trait.RngCore.html#tymethod.fill_bytes -[`RngCore::next_u32`]: ../rand/rand_core/trait.RngCore.html#tymethod.next_u32 -[`RngCore::next_u64`]: ../rand/rand_core/trait.RngCore.html#tymethod.next_u64 +[`RngCore::fill_bytes`]: https://docs.rs/rand_core/latest/rand_core/trait.RngCore.html#tymethod.fill_bytes +[`RngCore::next_u32`]: https://docs.rs/rand_core/latest/rand_core/trait.RngCore.html#tymethod.next_u32 +[`RngCore::next_u64`]: https://docs.rs/rand_core/latest/rand_core/trait.RngCore.html#tymethod.next_u64 diff --git a/src/guide-dist.md b/src/guide-dist.md index 8aef639..f4883bd 100644 --- a/src/guide-dist.md +++ b/src/guide-dist.md @@ -173,32 +173,32 @@ output values lie between 0 and 1. The [`Dirichlet`] distribution is a generalisation to any positive number of parameters. [Sequences]: guide-seq.html -[`Distribution`]: ../rand/rand/distributions/trait.Distribution.html -[`distributions`]: ../rand/rand/distributions/index.html -[`rand`]: ../rand/rand/index.html -[`rand_distr`]: ../rand/rand_distr/index.html -[`Rng::gen_range`]: ../rand/rand/trait.Rng.html#method.gen_range -[`random`]: ../rand/rand/fn.random.html -[`Rng::gen_bool`]: ../rand/rand/trait.Rng.html#method.gen_bool -[`Rng::gen_ratio`]: ../rand/rand/trait.Rng.html#method.gen_ratio -[`Rng::gen`]: ../rand/rand/trait.Rng.html#method.gen -[`Rng`]: ../rand/rand/trait.Rng.html -[`Standard`]: ../rand/rand/distributions/struct.Standard.html -[`Uniform`]: ../rand/rand/distributions/struct.Uniform.html -[`Uniform::sample_single`]: ../rand/rand/distributions/struct.Uniform.html#method.sample_single -[`Alphanumeric`]: ../rand/rand/distributions/struct.Alphanumeric.html -[`Open01`]: ../rand/rand/distributions/struct.Open01.html -[`OpenClosed01`]: ../rand/rand/distributions/struct.OpenClosed01.html -[`Bernoulli`]: ../rand/rand/distributions/struct.Bernoulli.html -[`Binomial`]: ../rand/rand_distr/struct.Binomial.html -[`Exp`]: ../rand/rand_distr/struct.Exp.html -[`Normal`]: ../rand/rand_distr/struct.Normal.html -[`LogNormal`]: ../rand/rand_distr/struct.LogNormal.html -[`UnitCircle`]: ../rand/rand_distr/struct.UnitCircle.html -[`UnitSphere`]: ../rand/rand_distr/struct.UnitSphere.html -[`Cauchy`]: ../rand/rand_distr/struct.Cauchy.html -[`Poisson`]: ../rand/rand_distr/struct.Poisson.html -[`Beta`]: ../rand/rand_distr/struct.Beta.html -[`Dirichlet`]: ../rand/rand_distr/struct.Dirichlet.html +[`Distribution`]: https://docs.rs/rand/latest/rand/distributions/trait.Distribution.html +[`distributions`]: https://docs.rs/rand/latest/rand/distributions/ +[`rand`]: https://docs.rs/rand/ +[`rand_distr`]: https://docs.rs/rand_distr/ +[`Rng::gen_range`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.gen_range +[`random`]: https://docs.rs/rand/latest/rand/fn.random.html +[`Rng::gen_bool`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.gen_bool +[`Rng::gen_ratio`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.gen_ratio +[`Rng::gen`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.gen +[`Rng`]: https://docs.rs/rand/latest/rand/trait.Rng.html +[`Standard`]: https://docs.rs/rand/latest/rand/distributions/struct.Standard.html +[`Uniform`]: https://docs.rs/rand/latest/rand/distributions/struct.Uniform.html +[`Uniform::sample_single`]: https://docs.rs/rand/latest/rand/distributions/struct.Uniform.html#method.sample_single +[`Alphanumeric`]: https://docs.rs/rand/latest/rand/distributions/struct.Alphanumeric.html +[`Open01`]: https://docs.rs/rand/latest/rand/distributions/struct.Open01.html +[`OpenClosed01`]: https://docs.rs/rand/latest/rand/distributions/struct.OpenClosed01.html +[`Bernoulli`]: https://docs.rs/rand/latest/rand/distributions/struct.Bernoulli.html +[`Binomial`]: https://docs.rs/rand_distr/latest/rand_distr/struct.Binomial.html +[`Exp`]: https://docs.rs/rand_distr/latest/rand_distr/struct.Exp.html +[`Normal`]: https://docs.rs/rand_distr/latest/rand_distr/struct.Normal.html +[`LogNormal`]: https://docs.rs/rand_distr/latest/rand_distr/struct.LogNormal.html +[`UnitCircle`]: https://docs.rs/rand_distr/latest/rand_distr/struct.UnitCircle.html +[`UnitSphere`]: https://docs.rs/rand_distr/latest/rand_distr/struct.UnitSphere.html +[`Cauchy`]: https://docs.rs/rand_distr/latest/rand_distr/struct.Cauchy.html +[`Poisson`]: https://docs.rs/rand_distr/latest/rand_distr/struct.Poisson.html +[`Beta`]: https://docs.rs/rand_distr/latest/rand_distr/struct.Beta.html +[`Dirichlet`]: https://docs.rs/rand_distr/latest/rand_distr/struct.Dirichlet.html [`statrs`]: https://github.com/statrs-dev/statrs/ -[`WeightedIndex`]: ../rand/rand/distributions/struct.WeightedIndex.html +[`WeightedIndex`]: https://docs.rs/rand/latest/rand/distributions/struct.WeightedIndex.html diff --git a/src/guide-err.md b/src/guide-err.md index 90b4fea..af12ffb 100644 --- a/src/guide-err.md +++ b/src/guide-err.md @@ -29,10 +29,10 @@ be forced to fail in this case: likely) then the RNG continues without reseeding; a log message (warning) is emitted if logging is enabled. -[`Rng::try_fill`]: ../rand/rand/trait.Rng.html#method.try_fill -[`RngCore::try_fill_bytes`]: ../rand/rand_core/trait.RngCore.html#tymethod.try_fill_bytes -[`SeedableRng::from_rng`]: ../rand/rand_core/trait.SeedableRng.html#method.from_rng -[`RngCore`]: ../rand/rand_core/trait.RngCore.html -[`thread_rng`]: ../rand/rand/fn.thread_rng.html -[`OsRng`]: ../rand/rand/rngs/struct.OsRng.html +[`Rng::try_fill`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.try_fill +[`RngCore::try_fill_bytes`]: https://docs.rs/rand_core/latest/rand_core/trait.RngCore.html#tymethod.try_fill_bytes +[`SeedableRng::from_rng`]: https://docs.rs/rand_core/latest/rand_core/trait.SeedableRng.html#method.from_rng +[`RngCore`]: https://docs.rs/rand_core/latest/rand_core/trait.RngCore.html +[`thread_rng`]: https://docs.rs/rand/latest/rand/fn.thread_rng.html +[`OsRng`]: https://docs.rs/rand/latest/rand/rngs/struct.OsRng.html [`getrandom`]: https://docs.rs/getrandom/latest/getrandom/ diff --git a/src/guide-gen.md b/src/guide-gen.md index 74138bd..b75a618 100644 --- a/src/guide-gen.md +++ b/src/guide-gen.md @@ -129,5 +129,5 @@ HRNG (but using nanosecond resolution timers and conservatively assuming only a couple of bits entropy is available per time-stamp, after running several tests on the timer's quality). -[`RngCore`]: ../rand/rand_core/trait.RngCore.html +[`RngCore`]: https://docs.rs/rand_core/latest/rand_core/trait.RngCore.html [`JitterRng`]: https://docs.rs/rand_jitter/latest/rand_jitter/struct.JitterRng.html diff --git a/src/guide-process.md b/src/guide-process.md index 3728e79..7f760cd 100644 --- a/src/guide-process.md +++ b/src/guide-process.md @@ -40,7 +40,7 @@ If you wish to implement step-wise sampling yourself, here are a few ideas: may be adjusted to this application. -[`Distribution`]: ../rand/rand/distributions/trait.Distribution.html -[`IteratorRandom::choose_multiple`]: ../rand/rand/seq/trait.IteratorRandom.html#method.choose_multiple -[`SliceRandom::choose_multiple`]: ../rand/rand/seq/trait.SliceRandom.html#tymethod.choose_multiple +[`Distribution`]: https://docs.rs/rand/latest/rand/distributions/trait.Distribution.html +[`IteratorRandom::choose_multiple`]: https://docs.rs/rand/latest/rand/seq/trait.IteratorRandom.html#method.choose_multiple +[`SliceRandom::choose_multiple`]: https://docs.rs/rand/latest/rand/seq/trait.SliceRandom.html#tymethod.choose_multiple [`src/seq/index.rs`]: https://github.com/rust-random/rand/blob/master/src/seq/index.rs diff --git a/src/guide-rngs.md b/src/guide-rngs.md index 74512db..db5e507 100644 --- a/src/guide-rngs.md +++ b/src/guide-rngs.md @@ -291,29 +291,29 @@ https://web.archive.org/web/20160801142711/http://random.mat.sbg.ac.at/results/p by P. Hellekalek. -[`rngs` module]: ../rand/rand/rngs/index.html -[`SmallRng`]: ../rand/rand/rngs/struct.SmallRng.html -[`StdRng`]: ../rand/rand/rngs/struct.StdRng.html -[`StepRng`]: ../rand/rand/rngs/mock/struct.StepRng.html -[`thread_rng`]: ../rand/rand/fn.thread_rng.html +[`rngs` module]: https://docs.rs/rand/latest/rand/rngs/ +[`SmallRng`]: https://docs.rs/rand/latest/rand/rngs/struct.SmallRng.html +[`StdRng`]: https://docs.rs/rand/latest/rand/rngs/struct.StdRng.html +[`StepRng`]: https://docs.rs/rand/latest/rand/rngs/mock/struct.StepRng.html +[`thread_rng`]: https://docs.rs/rand/latest/rand/fn.thread_rng.html [basic PRNGs]: #basic-pseudo-random-number-generators-prngs [CSPRNGs]: #cryptographically-secure-pseudo-random-number-generators-csprngs -[`Pcg32`]: ../rand/rand_pcg/type.Pcg32.html -[`Pcg64`]: ../rand/rand_pcg/type.Pcg64.html -[`Pcg64Mcg`]: ../rand/rand_pcg/type.Pcg64Mcg.html +[`Pcg32`]: https://docs.rs/rand_pcg/latest/rand_pcg/type.Pcg32.html +[`Pcg64`]: https://docs.rs/rand_pcg/latest/rand_pcg/type.Pcg64.html +[`Pcg64Mcg`]: https://docs.rs/rand_pcg/latest/rand_pcg/type.Pcg64Mcg.html [`XorShiftRng`]: https://docs.rs/rand_xorshift/latest/rand_xorshift/struct.XorShiftRng.html [`Xoshiro256PlusPlus`]: https://docs.rs/rand_xoshiro/latest/rand_xoshiro/struct.Xoshiro256PlusPlus.html [`Xoshiro256Plus`]: https://docs.rs/rand_xoshiro/latest/rand_xoshiro/struct.Xoshiro256Plus.html [`SplitMix64`]: https://docs.rs/rand_xoshiro/latest/rand_xoshiro/struct.SplitMix64.html -[`ChaChaRng`]: ../rand/rand_chacha/type.ChaChaRng.html -[`ChaCha20Rng`]: ../rand/rand_chacha/struct.ChaCha20Rng.html -[`ChaCha8Rng`]: ../rand/rand_chacha/struct.ChaCha8Rng.html +[`ChaChaRng`]: https://docs.rs/rand_chacha/latest/rand_chacha/type.ChaChaRng.html +[`ChaCha20Rng`]: https://docs.rs/rand_chacha/latest/rand_chacha/struct.ChaCha20Rng.html +[`ChaCha8Rng`]: https://docs.rs/rand_chacha/latest/rand_chacha/struct.ChaCha8Rng.html [`Hc128Rng`]: https://docs.rs/rand_hc/latest/rand_hc/struct.Hc128Rng.html [`IsaacRng`]: https://docs.rs/rand_isaac/latest/rand_isaac/isaac/struct.IsaacRng.html [`Isaac64Rng`]: https://docs.rs/rand_isaac/latest/rand_isaac/isaac64/struct.Isaac64Rng.html -[`ThreadRng`]: ../rand/rand/rngs/struct.ThreadRng.html -[`FromEntropy`]: ../rand/rand/trait.FromEntropy.html -[`EntropyRng`]: ../rand/rand/rngs/struct.EntropyRng.html +[`ThreadRng`]: https://docs.rs/rand/latest/rand/rngs/struct.ThreadRng.html +[`FromEntropy`]: https://docs.rs/rand/latest/rand/trait.FromEntropy.html +[`EntropyRng`]: https://docs.rs/rand/latest/rand/rngs/struct.EntropyRng.html [TestU01]: http://simul.iro.umontreal.ca/testu01/tu01.html [PractRand]: http://pracrand.sourceforge.net/ [pcg-random]: http://www.pcg-random.org/ @@ -326,4 +326,4 @@ by P. Hellekalek. [NIST]: https://www.nist.gov/ [ECRYPT]: http://www.ecrypt.eu.org/ [`getrandom`]: https://docs.rs/getrandom/ -[`SeedableRng::from_entropy`]: ../rand/rand/trait.SeedableRng.html#method.from_entropy +[`SeedableRng::from_entropy`]: https://docs.rs/rand/latest/rand/trait.SeedableRng.html#method.from_entropy diff --git a/src/guide-seeding.md b/src/guide-seeding.md index 84bdff8..f7adbd2 100644 --- a/src/guide-seeding.md +++ b/src/guide-seeding.md @@ -141,12 +141,12 @@ It is **not a password hasher**, for such applications a key-derivation function such as Argon2 must be used. -[`SeedableRng`]: ../rand/rand_core/trait.SeedableRng.html -[`Seed`]: ../rand/rand_core/trait.SeedableRng.html#type.Seed -[`SeedableRng::from_seed`]: ../rand/rand_core/trait.SeedableRng.html#tymethod.from_seed -[`SeedableRng::from_rng`]: ../rand/rand_core/trait.SeedableRng.html#method.from_rng -[`SeedableRng::seed_from_u64`]: ../rand/rand_core/trait.SeedableRng.html#method.seed_from_u64 -[`SeedableRng::from_entropy`]: ../rand/rand_core/trait.SeedableRng.html#method.from_entropy +[`SeedableRng`]: https://docs.rs/rand_core/latest/rand_core/trait.SeedableRng.html +[`Seed`]: https://docs.rs/rand_core/latest/rand_core/trait.SeedableRng.html#type.Seed +[`SeedableRng::from_seed`]: https://docs.rs/rand_core/latest/rand_core/trait.SeedableRng.html#tymethod.from_seed +[`SeedableRng::from_rng`]: https://docs.rs/rand_core/latest/rand_core/trait.SeedableRng.html#method.from_rng +[`SeedableRng::seed_from_u64`]: https://docs.rs/rand_core/latest/rand_core/trait.SeedableRng.html#method.seed_from_u64 +[`SeedableRng::from_entropy`]: https://docs.rs/rand_core/latest/rand_core/trait.SeedableRng.html#method.from_entropy [`XorShiftRng`]: https://docs.rs/rand_xorshift/latest/rand_xorshift/struct.XorShiftRng.html -[`ChaCha8Rng`]: ../rand/rand_chacha/struct.ChaCha8Rng.html +[`ChaCha8Rng`]: https://docs.rs/rand_chacha/latest/rand_chacha/struct.ChaCha8Rng.html [`rand_seeder`]: https://github.com/rust-random/seeder/ diff --git a/src/guide-seq.md b/src/guide-seq.md index c53f699..67fd2b0 100644 --- a/src/guide-seq.md +++ b/src/guide-seq.md @@ -68,25 +68,25 @@ immutable distributions, we offer the following: weights - Implement yourself: see the section in [Random processes](guide-process.html#sampling-without-replacement) -[`Distribution`]: ../rand/rand/distributions/trait.Distribution.html -[`IteratorRandom`]: ../rand/rand/seq/trait.IteratorRandom.html -[`SliceRandom`]: ../rand/rand/seq/trait.SliceRandom.html -[`WeightedIndex`]: ../rand/rand/distributions/struct.WeightedIndex.html -[`WeightedAliasIndex`]: ../rand/rand_distr/weighted_alias/struct.WeightedAliasIndex.html -[`SliceRandom::choose`]: ../rand/rand/seq/trait.SliceRandom.html#tymethod.choose -[`SliceRandom::choose_mut`]: ../rand/rand/seq/trait.SliceRandom.html#tymethod.choose_mut -[`SliceRandom::choose_multiple`]: ../rand/rand/seq/trait.SliceRandom.html#tymethod.choose_multiple -[`IteratorRandom::choose`]: ../rand/rand/seq/trait.IteratorRandom.html#method.choose -[`IteratorRandom::choose_stable`]: ../rand/rand/seq/trait.IteratorRandom.html#method.choose_stable -[`IteratorRandom::choose_multiple`]: ../rand/rand/seq/trait.IteratorRandom.html#method.choose_multiple -[`IteratorRandom::choose_multiple_fill`]: ../rand/rand/seq/trait.IteratorRandom.html#method.choose_multiple_fill -[`SliceRandom::choose_weighted`]: ../rand/rand/seq/trait.SliceRandom.html#tymethod.choose_weighted -[`SliceRandom::choose_weighted_mut`]: ../rand/rand/seq/trait.SliceRandom.html#tymethod.choose_weighted_mut -[`SliceRandom::choose_multiple_weighted`]: ../rand/rand/seq/trait.SliceRandom.html#tymethod.choose_multiple_weighted -[`SliceRandom::shuffle`]: ../rand/rand/seq/trait.SliceRandom.html#tymethod.shuffle -[`SliceRandom::partial_shuffle`]: ../rand/rand/seq/trait.SliceRandom.html#tymethod.partial_shuffle -[`Rng::gen_range`]: ../rand/rand/trait.Rng.html#method.gen_range -[`index::sample`]: ../rand/rand/seq/index/fn.sample.html -[`index::sample_weighted`]: ../rand/rand/seq/index/fn.sample_weighted.html +[`Distribution`]: https://docs.rs/rand/latest/rand/distributions/trait.Distribution.html +[`IteratorRandom`]: https://docs.rs/rand/latest/rand/seq/trait.IteratorRandom.html +[`SliceRandom`]: https://docs.rs/rand/latest/rand/seq/trait.SliceRandom.html +[`WeightedIndex`]: https://docs.rs/rand/latest/rand/distributions/struct.WeightedIndex.html +[`WeightedAliasIndex`]: https://docs.rs/rand_distr/latest/rand_distr/weighted_alias/struct.WeightedAliasIndex.html +[`SliceRandom::choose`]: https://docs.rs/rand/latest/rand/seq/trait.SliceRandom.html#tymethod.choose +[`SliceRandom::choose_mut`]: https://docs.rs/rand/latest/rand/seq/trait.SliceRandom.html#tymethod.choose_mut +[`SliceRandom::choose_multiple`]: https://docs.rs/rand/latest/rand/seq/trait.SliceRandom.html#tymethod.choose_multiple +[`IteratorRandom::choose`]: https://docs.rs/rand/latest/rand/seq/trait.IteratorRandom.html#method.choose +[`IteratorRandom::choose_stable`]: https://docs.rs/rand/latest/rand/seq/trait.IteratorRandom.html#method.choose_stable +[`IteratorRandom::choose_multiple`]: https://docs.rs/rand/latest/rand/seq/trait.IteratorRandom.html#method.choose_multiple +[`IteratorRandom::choose_multiple_fill`]: https://docs.rs/rand/latest/rand/seq/trait.IteratorRandom.html#method.choose_multiple_fill +[`SliceRandom::choose_weighted`]: https://docs.rs/rand/latest/rand/seq/trait.SliceRandom.html#tymethod.choose_weighted +[`SliceRandom::choose_weighted_mut`]: https://docs.rs/rand/latest/rand/seq/trait.SliceRandom.html#tymethod.choose_weighted_mut +[`SliceRandom::choose_multiple_weighted`]: https://docs.rs/rand/latest/rand/seq/trait.SliceRandom.html#tymethod.choose_multiple_weighted +[`SliceRandom::shuffle`]: https://docs.rs/rand/latest/rand/seq/trait.SliceRandom.html#tymethod.shuffle +[`SliceRandom::partial_shuffle`]: https://docs.rs/rand/latest/rand/seq/trait.SliceRandom.html#tymethod.partial_shuffle +[`Rng::gen_range`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.gen_range +[`index::sample`]: https://docs.rs/rand/latest/rand/seq/index/fn.sample.html +[`index::sample_weighted`]: https://docs.rs/rand/latest/rand/seq/index/fn.sample_weighted.html [`size_hint`]: https://doc.rust-lang.org/stable/std/iter/trait.Iterator.html#method.size_hint [`Vec`]: https://doc.rust-lang.org/stable/std/vec/struct.Vec.html diff --git a/src/guide-start.md b/src/guide-start.md index 04e56f3..1da65f1 100644 --- a/src/guide-start.md +++ b/src/guide-start.md @@ -51,7 +51,7 @@ fn main() { The first thing you may have noticed is that we imported everything from the [prelude]. This is the lazy way to `use` rand, and like the -[standard library's prelude](https://doc.rust-lang.org/std/prelude/index.html), +[standard library's prelude](https://doc.rust-lang.org/std/prelude/), only imports the most common items. If you don't wish to use the prelude, remember to import the [`Rng`] trait! @@ -92,18 +92,18 @@ fn main() { } ``` -[API documentation]: https://rust-random.github.io/rand/rand/index.html +[API documentation]: https://docs.rs/rand/ [guide]: guide.md [RNGs]: guide-rngs.md -[prelude]: https://rust-random.github.io/rand/rand/prelude/index.html -[`Rng`]: https://rust-random.github.io/rand/rand/trait.Rng.html -[`gen`]: https://rust-random.github.io/rand/rand/trait.Rng.html#method.gen -[`gen_range`]: https://rust-random.github.io/rand/rand/trait.Rng.html#method.gen_range -[`sample`]: https://rust-random.github.io/rand/rand/trait.Rng.html#method.sample -[`thread_rng`]: https://rust-random.github.io/rand/rand/fn.thread_rng.html -[`random`]: https://rust-random.github.io/rand/rand/fn.random.html -[`Standard`]: https://rust-random.github.io/rand/rand/distributions/struct.Standard.html -[`IteratorRandom`]: https://rust-random.github.io/rand/rand/seq/trait.IteratorRandom.html -[`SliceRandom`]: https://rust-random.github.io/rand/rand/seq/trait.SliceRandom.html -[`seed_from_u64`]: https://rust-random.github.io/rand/rand/trait.SeedableRng.html#method.seed_from_u64 -[`from_seed`]: https://rust-random.github.io/rand/rand/trait.SeedableRng.html#tymethod.from_seed +[prelude]: https://docs.rs/rand/latest/rand/prelude/ +[`Rng`]: https://docs.rs/rand/latest/rand/trait.Rng.html +[`gen`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.gen +[`gen_range`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.gen_range +[`sample`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.sample +[`thread_rng`]: https://docs.rs/rand/latest/rand/fn.thread_rng.html +[`random`]: https://docs.rs/rand/latest/rand/fn.random.html +[`Standard`]: https://docs.rs/rand/latest/rand/distributions/struct.Standard.html +[`IteratorRandom`]: https://docs.rs/rand/latest/rand/seq/trait.IteratorRandom.html +[`SliceRandom`]: https://docs.rs/rand/latest/rand/seq/trait.SliceRandom.html +[`seed_from_u64`]: https://docs.rs/rand/latest/rand/trait.SeedableRng.html#method.seed_from_u64 +[`from_seed`]: https://docs.rs/rand/latest/rand/trait.SeedableRng.html#tymethod.from_seed diff --git a/src/guide-values.md b/src/guide-values.md index 95f65aa..11f09cd 100644 --- a/src/guide-values.md +++ b/src/guide-values.md @@ -123,14 +123,14 @@ fn main() { } ``` -[`Rng`]: ../rand/rand/trait.Rng.html -[`Rng::gen`]: ../rand/rand/trait.Rng.html#method.gen -[`Rng::gen_range`]: ../rand/rand/trait.Rng.html#method.gen_range -[`Rng::sample`]: ../rand/rand/trait.Rng.html#method.sample -[`Rng::gen_bool`]: ../rand/rand/trait.Rng.html#method.gen_bool -[`Rng::gen_ratio`]: ../rand/rand/trait.Rng.html#method.gen_ratio -[`Rng::fill`]: ../rand/rand/trait.Rng.html#method.fill -[`Rng::try_fill`]: ../rand/rand/trait.Rng.html#method.try_fill -[`random`]: ../rand/rand/fn.random.html -[`thread_rng`]: ../rand/rand/fn.thread_rng.html -[`Standard`]: ../rand/rand/distributions/struct.Standard.html +[`Rng`]: https://docs.rs/rand/latest/rand/trait.Rng.html +[`Rng::gen`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.gen +[`Rng::gen_range`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.gen_range +[`Rng::sample`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.sample +[`Rng::gen_bool`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.gen_bool +[`Rng::gen_ratio`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.gen_ratio +[`Rng::fill`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.fill +[`Rng::try_fill`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.try_fill +[`random`]: https://docs.rs/rand/latest/rand/fn.random.html +[`thread_rng`]: https://docs.rs/rand/latest/rand/fn.thread_rng.html +[`Standard`]: https://docs.rs/rand/latest/rand/distributions/struct.Standard.html diff --git a/src/guide.md b/src/guide.md index bdc5dbb..f1e4f25 100644 --- a/src/guide.md +++ b/src/guide.md @@ -32,4 +32,4 @@ For some inspiration, see the example applications: - [Monty Hall Problem]( https://github.com/rust-random/rand/blob/master/examples/monty-hall.rs) -[`prelude`]: ../rand/rand/prelude/index.html +[`prelude`]: https://docs.rs/rand/latest/rand/prelude/ diff --git a/src/overview.md b/src/overview.md index ee45a53..7689c40 100644 --- a/src/overview.md +++ b/src/overview.md @@ -66,32 +66,32 @@ The [`seq`] module allows: - weighted sampling (`choose_weighted` via the `WeightedIndex` distribution) - shuffling a slice -[`prelude`]: ../rand/rand/prelude/index.html -[`distributions`]: ../rand/rand/distributions/index.html -[`Rng::gen_range(low..high)`]: ../rand/rand/trait.Rng.html#method.gen_range -[`Rng::gen_range(low..=high)`]: ../rand/rand/trait.Rng.html#method.gen_range -[`random()`]: ../rand/rand/fn.random.html -[`Rng::fill(dest)`]: ../rand/rand/trait.Rng.html#method.fill -[`Rng::gen_bool(p)`]: ../rand/rand/trait.Rng.html#method.gen_bool -[`Rng::gen()`]: ../rand/rand/trait.Rng.html#method.gen -[`Rng::shuffle`]: ../rand/rand/trait.Rng.html#method.shuffle -[`RngCore`]: ../rand/rand/trait.RngCore.html -[`Rng`]: ../rand/rand/trait.Rng.html -[`Rng::fill(dest)`]: ../rand/rand/trait.Rng.html#method.fill -[`Rng::sample(distribution)`]: ../rand/rand/trait.Rng.html#method.sample -[`SeedableRng`]: ../rand/rand/trait.SeedableRng.html -[`seq`]: ../rand/rand/seq/index.html -[`SmallRng`]: ../rand/rand/rngs/struct.SmallRng.html -[`StdRng`]: ../rand/rand/rngs/struct.StdRng.html -[`thread_rng()`]: ../rand/rand/fn.thread_rng.html -[`Standard`]: ../rand/rand/distributions/struct.Standard.html -[`Uniform`]: ../rand/rand/distributions/struct.Uniform.html +[`prelude`]: https://docs.rs/rand/latest/rand/prelude/ +[`distributions`]: https://docs.rs/rand/latest/rand/distributions/ +[`Rng::gen_range(low..high)`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.gen_range +[`Rng::gen_range(low..=high)`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.gen_range +[`random()`]: https://docs.rs/rand/latest/rand/fn.random.html +[`Rng::fill(dest)`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.fill +[`Rng::gen_bool(p)`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.gen_bool +[`Rng::gen()`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.gen +[`Rng::shuffle`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.shuffle +[`RngCore`]: https://docs.rs/rand/latest/rand/trait.RngCore.html +[`Rng`]: https://docs.rs/rand/latest/rand/trait.Rng.html +[`Rng::fill(dest)`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.fill +[`Rng::sample(distribution)`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.sample +[`SeedableRng`]: https://docs.rs/rand/latest/rand/trait.SeedableRng.html +[`seq`]: https://docs.rs/rand/latest/rand/seq/ +[`SmallRng`]: https://docs.rs/rand/latest/rand/rngs/struct.SmallRng.html +[`StdRng`]: https://docs.rs/rand/latest/rand/rngs/struct.StdRng.html +[`thread_rng()`]: https://docs.rs/rand/latest/rand/fn.thread_rng.html +[`Standard`]: https://docs.rs/rand/latest/rand/distributions/struct.Standard.html +[`Uniform`]: https://docs.rs/rand/latest/rand/distributions/struct.Uniform.html [`rand`]: https://crates.io/crates/rand [`rand_core`]: https://crates.io/crates/rand_core -[`FromEntropy`]: ../rand/rand/trait.FromEntropy.html -[`EntropyRng`]: ../rand/rand/rngs/struct.EntropyRng.html -[`Distribution`]: ../rand/rand/distributions/trait.Distribution.html -[`Distribution::sample`]: ../rand/rand/distributions/trait.Distribution.html#tymethod.sample -[`Open01`]: ../rand/rand/distributions/struct.Open01.html -[`OpenClosed01`]: ../rand/rand/distributions/struct.OpenClosed01.html -[`OsRng`]: ../rand/rand/rngs/struct.OsRng.html +[`FromEntropy`]: https://docs.rs/rand/latest/rand/trait.FromEntropy.html +[`EntropyRng`]: https://docs.rs/rand/latest/rand/rngs/struct.EntropyRng.html +[`Distribution`]: https://docs.rs/rand/latest/rand/distributions/trait.Distribution.html +[`Distribution::sample`]: https://docs.rs/rand/latest/rand/distributions/trait.Distribution.html#tymethod.sample +[`Open01`]: https://docs.rs/rand/latest/rand/distributions/struct.Open01.html +[`OpenClosed01`]: https://docs.rs/rand/latest/rand/distributions/struct.OpenClosed01.html +[`OsRng`]: https://docs.rs/rand/latest/rand/rngs/struct.OsRng.html diff --git a/src/update-0.6.md b/src/update-0.6.md index a74810d..e89d4f6 100644 --- a/src/update-0.6.md +++ b/src/update-0.6.md @@ -8,7 +8,7 @@ We also found a new home for user-centric documentation — this book! ## PRNGs -All PRNGs in our [old PRNG module](https://docs.rs/rand/0.5/rand/prng/index.html) +All PRNGs in our [old PRNG module](https://docs.rs/rand/0.5/rand/prng/) have been moved to new crates. We also added an additional crate with the PCG algorithms, and an external crate with Xoshiro / Xoroshiro algorithms: @@ -28,7 +28,7 @@ XSH RR 64/32 LCG aka the standard PCG algorithm). ## Sequences -The [`seq` module](../rand/rand/seq/index.html) has been completely re-written, +The [`seq` module](https://docs.rs/rand/latest/rand/seq/) has been completely re-written, and the `choose` and `shuffle` methods have been removed from the [`Rng`] trait. Most functionality can now be found in the [`IteratorRandom`] and [`SliceRandom`] traits. @@ -56,12 +56,12 @@ supported automatically (with recent enough Rust version). The `i128_support` feature flag still exists to avoid breakage, but no longer does anything. -[`SmallRng`]: ../rand/rand/rngs/struct.SmallRng.html -[`Pcg32`]: ../rand/rand_pcg/type.Pcg32.html -[`Pcg64Mcg`]: ../rand/rand_pcg/type.Pcg64Mcg.html -[`Rng`]: ../rand/rand/trait.Rng.html -[`IteratorRandom`]: ../rand/rand/seq/trait.IteratorRandom.html -[`SliceRandom`]: ../rand/rand/seq/trait.SliceRandom.html +[`SmallRng`]: https://docs.rs/rand/latest/rand/rngs/struct.SmallRng.html +[`Pcg32`]: https://docs.rs/rand_pcg/latest/rand_pcg/type.Pcg32.html +[`Pcg64Mcg`]: https://docs.rs/rand_pcg/latest/rand_pcg/type.Pcg64Mcg.html +[`Rng`]: https://docs.rs/rand/latest/rand/trait.Rng.html +[`IteratorRandom`]: https://docs.rs/rand/latest/rand/seq/trait.IteratorRandom.html +[`SliceRandom`]: https://docs.rs/rand/latest/rand/seq/trait.SliceRandom.html [`WeightedChoice`]: https://docs.rs/rand/0.5/rand/distributions/struct.WeightedChoice.html -[`WeightedIndex`]: ../rand/rand/distributions/struct.WeightedIndex.html -[`SliceRandom::choose_weighted`]: ../rand/rand/seq/trait.SliceRandom.html#tymethod.choose_weighted +[`WeightedIndex`]: https://docs.rs/rand/latest/rand/distributions/struct.WeightedIndex.html +[`SliceRandom::choose_weighted`]: https://docs.rs/rand/latest/rand/seq/trait.SliceRandom.html#tymethod.choose_weighted diff --git a/src/update-0.7.md b/src/update-0.7.md index ebb9060..b522a23 100644 --- a/src/update-0.7.md +++ b/src/update-0.7.md @@ -82,26 +82,26 @@ that after upgrading to 0.7 results should be consistent across CPU architectures. -[`from_entropy`]: https://rust-random.github.io/rand/rand/trait.SeedableRng.html#method.from_entropy -[`SeedableRng::from_rng`]: https://rust-random.github.io/rand/rand/trait.SeedableRng.html#method.from_rng -[`SmallRng`]: ../rand/rand/rngs/struct.SmallRng.html -[`StdRng`]: ../rand/rand/rngs/struct.StdRng.html -[`ThreadRng`]: ../rand/rand/rngs/struct.ThreadRng.html -[`Pcg64`]: ../rand/rand_pcg/type.Pcg64.html +[`from_entropy`]: https://docs.rs/rand/latest/rand/trait.SeedableRng.html#method.from_entropy +[`SeedableRng::from_rng`]: https://docs.rs/rand/latest/rand/trait.SeedableRng.html#method.from_rng +[`SmallRng`]: https://docs.rs/rand/latest/rand/rngs/struct.SmallRng.html +[`StdRng`]: https://docs.rs/rand/latest/rand/rngs/struct.StdRng.html +[`ThreadRng`]: https://docs.rs/rand/latest/rand/rngs/struct.ThreadRng.html +[`Pcg64`]: https://docs.rs/rand_pcg/latest/rand_pcg/type.Pcg64.html [`rand::distributions::weighted::alias_method::WeightedIndex`]: https://docs.rs/rand/0.7/rand/distributions/weighted/alias_method/struct.WeightedIndex.html [getrandom]: https://github.com/rust-random/getrandom [`FromEntropy`]: https://docs.rs/rand/0.6.0/rand/trait.FromEntropy.html -[`SeedableRng`]: https://rust-random.github.io/rand/rand/trait.SeedableRng.html -[`Error`]: https://rust-random.github.io/rand/rand_core/struct.Error.html -[`Standard`]: ../rand/rand/distributions/struct.Standard.html -[`Uniform`]: ../rand/rand/distributions/struct.Uniform.html -[`rand::distributions`]: ../rand/rand/distributions/index.html -[`rand_distr`]: ../rand/rand_distr/index.html -[`rand_distr::Normal`]: ../rand/rand_distr/struct.Normal.html -[`NonZeroU*`]: https://doc.rust-lang.org/std/num/index.html -[`rand_distr::Pert`]: ../rand/rand_distr/struct.Pert.html -[`rand_distr::Triangular`]: ../rand/rand_distr/struct.Triangular.html -[`rand_distr::UnitBall`]: ../rand/rand_distr/struct.UnitBall.html -[`rand_distr::UnitDisc`]: ../rand/rand_distr/struct.UnitDisc.html -[`rand_distr::UnitSphere`]: ../rand/rand_distr/struct.UnitSphere.html -[`OsRng`]: ../rand/rand_core/struct.OsRng.html +[`SeedableRng`]: https://docs.rs/rand/latest/rand/trait.SeedableRng.html +[`Error`]: https://docs.rs/rand_core/latest/rand_core/struct.Error.html +[`Standard`]: https://docs.rs/rand/latest/rand/distributions/struct.Standard.html +[`Uniform`]: https://docs.rs/rand/latest/rand/distributions/struct.Uniform.html +[`rand::distributions`]: https://docs.rs/rand/latest/rand/distributions/ +[`rand_distr`]: https://docs.rs/rand_distr/ +[`rand_distr::Normal`]: https://docs.rs/rand_distr/latest/rand_distr/struct.Normal.html +[`NonZeroU*`]: https://doc.rust-lang.org/std/num/https://docs.rs/rand_chacha/latest/rand_chacha/ +[`rand_distr::Pert`]: https://docs.rs/rand_distr/latest/rand_distr/struct.Pert.html +[`rand_distr::Triangular`]: https://docs.rs/rand_distr/latest/rand_distr/struct.Triangular.html +[`rand_distr::UnitBall`]: https://docs.rs/rand_distr/latest/rand_distr/struct.UnitBall.html +[`rand_distr::UnitDisc`]: https://docs.rs/rand_distr/latest/rand_distr/struct.UnitDisc.html +[`rand_distr::UnitSphere`]: https://docs.rs/rand_distr/latest/rand_distr/struct.UnitSphere.html +[`OsRng`]: https://docs.rs/rand_core/latest/rand_core/struct.OsRng.html diff --git a/src/update-0.8.md b/src/update-0.8.md index dcd6f26..52d6c92 100644 --- a/src/update-0.8.md +++ b/src/update-0.8.md @@ -212,37 +212,37 @@ Value-stability tests were added for all distributions ([rand#786]), helping enforce our rules regarding value-breaking changes (see [Portability] section). -[`Fill`]: ../rand/rand/trait.Fill.html -[`Rng::gen_range`]: ../rand/rand/trait.Rng.html#method.gen_range -[`Rng::fill`]: ../rand/rand/trait.Rng.html#method.fill -[`Rng::try_fill`]: ../rand/rand/trait.Rng.html#method.try_fill -[`SmallRng`]: ../rand/rand/rngs/struct.SmallRng.html -[`StdRng`]: ../rand/rand/rngs/struct.StdRng.html -[`StepRng`]: ../rand/rand/rngs/mock/struct.StepRng.html -[`ThreadRng`]: ../rand/rand/rngs/struct.ThreadRng.html -[`ReseedingRng`]: ../rand/rand/rngs/adapter/struct.ReseedingRng.html -[`Standard`]: ../rand/rand/distributions/struct.Standard.html -[`Uniform`]: ../rand/rand/distributions/struct.Uniform.html -[`UniformInt`]: ../rand/rand/distributions/struct.UniformInt.html -[`UniformSampler::sample_single_inclusive`]: ../rand/rand/distributions/uniform/trait.UniformSampler.html#method.sample_single_inclusive -[`Alphanumeric`]: ../rand/rand/distributions/struct.Alphanumeric.html -[`WeightedIndex`]: ../rand/rand/distributions/struct.WeightedIndex.html -[`rand::rngs::adapter`]: ../rand/rand/rngs/adapter/index.html -[`rand::seq::index::sample_weighted`]: ../rand/rand/seq/index/fn.sample_weighted.html -[`SliceRandom::choose_multiple_weighted`]: ../rand/rand/seq/trait.SliceRandom.html#method.choose_multiple_weighted -[`IteratorRandom::choose`]: ../rand/rand/seq/trait.IteratorRandom.html#method.choose -[`IteratorRandom::choose_stable`]: ../rand/rand/seq/trait.IteratorRandom.html#method.choose_stable -[`rand_distr::weighted_alias::WeightedAliasIndex`]: ../rand/rand_distr/weighted_alias/struct.WeightedAliasIndex.html -[`rand_distr::InverseGaussian`]: ../rand/rand_distr/struct.InverseGaussian.html -[`rand_distr::NormalInverseGaussian`]: ../rand/rand_distr/struct.NormalInverseGaussian.html -[`rand_distr::Dirichlet`]: ../rand/rand_distr/struct.Dirichlet.html -[`rand_distr::Poisson`]: ../rand/rand_distr/struct.Poisson.html -[`rand_distr::Exp`]: ../rand/rand_distr/struct.Exp.html -[`Geometric`]: ../rand/rand_distr/struct.Geometric.html -[`Hypergeometric`]: ../rand/rand_distr/struct.Hypergeometric.html -[`Beta`]: ../rand/rand_distr/struct.Beta.html -[`Normal`]: ../rand/rand_distr/struct.Normal.html -[`LogNormal`]: ../rand/rand_distr/struct.LogNormal.html +[`Fill`]: https://docs.rs/rand/latest/rand/trait.Fill.html +[`Rng::gen_range`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.gen_range +[`Rng::fill`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.fill +[`Rng::try_fill`]: https://docs.rs/rand/latest/rand/trait.Rng.html#method.try_fill +[`SmallRng`]: https://docs.rs/rand/latest/rand/rngs/struct.SmallRng.html +[`StdRng`]: https://docs.rs/rand/latest/rand/rngs/struct.StdRng.html +[`StepRng`]: https://docs.rs/rand/latest/rand/rngs/mock/struct.StepRng.html +[`ThreadRng`]: https://docs.rs/rand/latest/rand/rngs/struct.ThreadRng.html +[`ReseedingRng`]: https://docs.rs/rand/latest/rand/rngs/adapter/struct.ReseedingRng.html +[`Standard`]: https://docs.rs/rand/latest/rand/distributions/struct.Standard.html +[`Uniform`]: https://docs.rs/rand/latest/rand/distributions/struct.Uniform.html +[`UniformInt`]: https://docs.rs/rand/latest/rand/distributions/struct.UniformInt.html +[`UniformSampler::sample_single_inclusive`]: https://docs.rs/rand/latest/rand/distributions/uniform/trait.UniformSampler.html#method.sample_single_inclusive +[`Alphanumeric`]: https://docs.rs/rand/latest/rand/distributions/struct.Alphanumeric.html +[`WeightedIndex`]: https://docs.rs/rand/latest/rand/distributions/struct.WeightedIndex.html +[`rand::rngs::adapter`]: https://docs.rs/rand/latest/rand/rngs/adapter/ +[`rand::seq::index::sample_weighted`]: https://docs.rs/rand/latest/rand/seq/index/fn.sample_weighted.html +[`SliceRandom::choose_multiple_weighted`]: https://docs.rs/rand/latest/rand/seq/trait.SliceRandom.html#method.choose_multiple_weighted +[`IteratorRandom::choose`]: https://docs.rs/rand/latest/rand/seq/trait.IteratorRandom.html#method.choose +[`IteratorRandom::choose_stable`]: https://docs.rs/rand/latest/rand/seq/trait.IteratorRandom.html#method.choose_stable +[`rand_distr::weighted_alias::WeightedAliasIndex`]: https://docs.rs/rand_distr/latest/rand_distr/weighted_alias/struct.WeightedAliasIndex.html +[`rand_distr::InverseGaussian`]: https://docs.rs/rand_distr/latest/rand_distr/struct.InverseGaussian.html +[`rand_distr::NormalInverseGaussian`]: https://docs.rs/rand_distr/latest/rand_distr/struct.NormalInverseGaussian.html +[`rand_distr::Dirichlet`]: https://docs.rs/rand_distr/latest/rand_distr/struct.Dirichlet.html +[`rand_distr::Poisson`]: https://docs.rs/rand_distr/latest/rand_distr/struct.Poisson.html +[`rand_distr::Exp`]: https://docs.rs/rand_distr/latest/rand_distr/struct.Exp.html +[`Geometric`]: https://docs.rs/rand_distr/latest/rand_distr/struct.Geometric.html +[`Hypergeometric`]: https://docs.rs/rand_distr/latest/rand_distr/struct.Hypergeometric.html +[`Beta`]: https://docs.rs/rand_distr/latest/rand_distr/struct.Beta.html +[`Normal`]: https://docs.rs/rand_distr/latest/rand_distr/struct.Normal.html +[`LogNormal`]: https://docs.rs/rand_distr/latest/rand_distr/struct.LogNormal.html [rand#932]: https://github.com/rust-random/rand/issues/932 [rand#786]: https://github.com/rust-random/rand/issues/786 [Portability]: ./portability.html