fastrand
A simple and fast random number generator
2.5.0
841M downloads/mo
#74 most downloaded on crates.io
smol-rs/fastrand
What this package is like to depend on
Last release 1 months ago
19 Jul 2026
Release timing varies
gaps range from 4 weeks to 1.3 years
Nearly every release is documented
notes for 29 of 29 stable releases
1 version withdrawn
withdrawn after publishing
6 years old
30 releases · first in 2020
3 releases in the last 12 months
see the full history below
Release timeline
30 releases · May 2020 to Jul 2026
2021
2022
2023
2024
2025
2026
Releases
latest 30-
2.5.019 Jul 2026 -
2.4.107 Apr 2026 -
2.4.004 Apr 2026 withdrawnRelease notes
Open source →- Bump MSRV to 1.63. (#104)
- Improve quality of f32/f64 generation. (#103)
- Add
f{32,64}_inclusiveandRng::f{32,64}_inclusive. (#103) - Make
Rng::with_seedconst. (#107) - Update
getrandomto 0.3. (#104)
-
2.3.008 Dec 2024Release notes
Open source →- Accept
IntoIteratorinchoose_multiplefunctions instead of justIterator. (#92)
Release notes
Open source →- Accept
IntoIteratorinchoose_multiplefunctions instead of justIterator. (#92)
- Accept
-
2.2.008 Nov 2024 -
2.1.123 Aug 2024Release notes
Open source →- Remove support for 128-bit targets, as they are not supported by rustc yet. (#87)
Release notes
Open source →- Remove support for 128-bit targets, as they are not supported by rustc yet. (#87)
-
2.1.027 Apr 2024Release notes
Open source →- Change the RNG algorithm and the way that the seed is computed. This will cause
the algorithm to emit different constants for different seeds, hence the minor
SemVer change.
- Update to the final WyRand v4.2 constants for better entropy. (#82)
- Remove an unnecessary seed modification. (#73)
- Change the RNG algorithm and the way that the seed is computed. This will cause
the algorithm to emit different constants for different seeds, hence the minor
SemVer change.
-
2.0.224 Mar 2024 -
2.0.125 Sep 2023Release notes
Open source →Release notes
Open source →- Clarify documentation for the
fork()method. (#62) - Mention
fastrand-contribin documentation. (#70)
- Clarify documentation for the
-
2.0.009 Jun 2023Release notes
Open source →- Breaking: Remove interior mutability from
Rng. (#47) - Add a
fork()method. (#49) - Add a
no_stdmode. (#50) - Add an iterator selection function. (#51)
- Add a
choose_multiple()function for sampling several elements from an iterator. (#55) - Use the
getrandomcrate for seeding on WebAssembly targets if thejsfeature is enabled. (#60)
Release notes
Open source →- Breaking: Remove interior mutability from
Rng. (#47) - Add a
fork()method. (#49) - Add a
no_stdmode. (#50) - Add an iterator selection function. (#51)
- Add a
choose_multiple()function for sampling several elements from an iterator. (#55) - Use the
getrandomcrate for seeding on WebAssembly targets if thejsfeature is enabled. (#60)
- Breaking: Remove interior mutability from
-
1.9.014 Feb 2023 -
1.8.023 Jul 2022 -
1.7.022 Jan 2022 -
1.6.019 Dec 2021 -
1.5.019 Jul 2021 -
1.4.124 Apr 2021 -
1.4.003 Oct 2020 -
1.3.501 Sep 2020 -
1.3.408 Aug 2020 -
1.3.307 Jul 2020 -
1.3.226 Jun 2020 -
1.3.126 Jun 2020 -
1.3.026 Jun 2020Release notes
Open source →- Add
f32()andf64(). - Add
lowercase(),uppercase(),alphabetic(), anddigit().
- Add
-
1.2.418 Jun 2020Release notes
Open source →- Switch to PCG XSH RR 64/32.
- Fix a bug in
gen_mod_u128. - Fix bias in ranges.
-
1.2.317 Jun 2020 -
1.2.217 Jun 2020 -
1.2.117 Jun 2020 -
1.2.017 Jun 2020 -
1.1.028 May 2020 -
1.0.027 May 2020