PackageTrack
Sign in Get early access

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
Release Pre-release Withdrawn

Releases

latest 30
  1. 2.5.0 19 Jul 2026
    Release notes
    • Update getrandom to 0.4. (#131)
    Open source →
    Release notes
    • Update getrandom to 0.4. (#131)
    Open source →
  2. 2.4.1 07 Apr 2026
    Release notes
    • Fix build failure with js feature. (#125)
    Open source →
    Release notes
    • Fix build failure with js feature. (#125)
    Open source →
  3. 2.4.0 04 Apr 2026 withdrawn
    Release notes
    • Bump MSRV to 1.63. (#104)
    • Improve quality of f32/f64 generation. (#103)
    • Add f{32,64}_inclusive and Rng::f{32,64}_inclusive. (#103)
    • Make Rng::with_seed const. (#107)
    • Update getrandom to 0.3. (#104)
    Open source →
    Release notes
    • Bump MSRV to 1.63. (#104)
    • Improve quality of f32/f64 generation. (#103)
    • Add f{32,64}_inclusive and Rng::f{32,64}_inclusive. (#103)
    • Make Rng::with_seed const. (#107)
    • Update getrandom to 0.3. (#104)
    Open source →
  4. 2.3.0 08 Dec 2024
    Release notes
    • Accept IntoIterator in choose_multiple functions instead of just Iterator. (#92)
    Open source →
    Release notes
    • Accept IntoIterator in choose_multiple functions instead of just Iterator. (#92)
    Open source →
  5. 2.2.0 08 Nov 2024
    Release notes
    • Expose missing fill method for the global RNG. (#90)
    Open source →
    Release notes
    • Expose missing fill method for the global RNG. (#90)
    Open source →
  6. 2.1.1 23 Aug 2024
    Release notes
    • Remove support for 128-bit targets, as they are not supported by rustc yet. (#87)
    Open source →
    Release notes
    • Remove support for 128-bit targets, as they are not supported by rustc yet. (#87)
    Open source →
  7. 2.1.0 27 Apr 2024
    Release notes
    • 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)
    Open source →
    Release notes
    • 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)
    Open source →
  8. 2.0.2 24 Mar 2024
    Release notes
    • Slight restructuring of the with_seed function. (#79)
    Open source →
    Release notes
    • Slight restructuring of the with_seed function. (#79)
    Open source →
  9. 2.0.1 25 Sep 2023
    Release notes
    • Clarify documentation for the fork() method. (#62)
    • Mention fastrand-contrib in documentation. (#70)
    Open source →
    Release notes
    • Clarify documentation for the fork() method. (#62)
    • Mention fastrand-contrib in documentation. (#70)
    Open source →
  10. 2.0.0 09 Jun 2023
    Release notes
    • Breaking: Remove interior mutability from Rng. (#47)
    • Add a fork() method. (#49)
    • Add a no_std mode. (#50)
    • Add an iterator selection function. (#51)
    • Add a choose_multiple() function for sampling several elements from an iterator. (#55)
    • Use the getrandom crate for seeding on WebAssembly targets if the js feature is enabled. (#60)
    Open source →
    Release notes
    • Breaking: Remove interior mutability from Rng. (#47)
    • Add a fork() method. (#49)
    • Add a no_std mode. (#50)
    • Add an iterator selection function. (#51)
    • Add a choose_multiple() function for sampling several elements from an iterator. (#55)
    • Use the getrandom crate for seeding on WebAssembly targets if the js feature is enabled. (#60)
    Open source →
  11. 1.9.0 14 Feb 2023
    Release notes
    • Add Rng::fill() (#35, #43)
    • Add #[must_use] to Rng::with_seed() (#46)
    Open source →
  12. 1.8.0 23 Jul 2022
    Release notes
    • Add get_seed() and Rng::get_seed() (#33)
    Open source →
  13. 1.7.0 22 Jan 2022
    Release notes
    • Add char() and Rng::char() (#25)
    Open source →
  14. 1.6.0 19 Dec 2021
    Release notes
    • Implement PartialEq and Eq for Rng (#23)
    Open source →
  15. 1.5.0 19 Jul 2021
    Release notes
    • Switch to Wyrand (#14)
    Open source →
  16. 1.4.1 24 Apr 2021
    Release notes
    • Fix bug when generating a signed integer within a range (#16)
    Open source →
  17. 1.4.0 03 Oct 2020
    Release notes
    • Add wasm support.
    Open source →
  18. 1.3.5 01 Sep 2020
    Release notes
    • Reword docs.
    • Add Rng::with_seed().
    Open source →
  19. 1.3.4 08 Aug 2020
    Release notes
    • Implement Clone for Rng.
    Open source →
  20. 1.3.3 07 Jul 2020
    Release notes
    • Forbid unsafe code.
    Open source →
  21. 1.3.2 26 Jun 2020
    Release notes
    • Support older Rust versions.
    Open source →
  22. 1.3.1 26 Jun 2020
    Release notes
    • Tweak Cargo keywords.
    Open source →
  23. 1.3.0 26 Jun 2020
    Release notes
    • Add f32() and f64().
    • Add lowercase(), uppercase(), alphabetic(), and digit().
    Open source →
  24. 1.2.4 18 Jun 2020
    Release notes
    • Switch to PCG XSH RR 64/32.
    • Fix a bug in gen_mod_u128.
    • Fix bias in ranges.
    Open source →
  25. 1.2.3 17 Jun 2020
    Release notes
    • Support Rust 1.32.0
    Open source →
  26. 1.2.2 17 Jun 2020
    Release notes
    • Use std::$t::MAX rather than $t::MAX to support older Rust versions.
    Open source →
  27. 1.2.1 17 Jun 2020
    Release notes
    • Inline all functions.
    Open source →
  28. 1.2.0 17 Jun 2020
    Release notes
    • Add Rng struct.
    Open source →
  29. 1.1.0 28 May 2020
    Release notes
    • Switch to PCG implementation.
    • Add alphanumeric().
    • Add seed().
    Open source →
  30. 1.0.0 27 May 2020
    Release notes
    • Initial version
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive