# rand

> A Rust library for random number generation

Source: https://talira.ai/catalog/rand-9705ej9q
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / math / random number generation](https://talira.ai/categories/libraries/math/random-number-generation)
- Licence: MIT OR Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [rust-random](https://talira.ai/orgs/rust-random.md)

rand is the Rust ecosystem's main family of crates for random number generation. It's built on a standard generator trait (`rand_core::RngCore`) with fast implementations of both cryptographically strong and small generators, an automatically seeded generator (`rand::rng`) on every `std` target, seeding from the getrandom crate, uniform and ranged sampling, many non-uniform distributions in `rand_distr`, and choosing and shuffling through `rand::seq`. Output is reproducible across platforms and it's partly `no_std` compatible. Its README says it's neither small nor primarily a cryptographic library, and points to fastrand and oorandom for something smaller.

## Links

- Website: https://rust-random.github.io/book/
- GitHub: https://github.com/rust-random/rand
- Docs: https://docs.rs/rand

## Problems it solves

- generate random numbers in my Rust program
- shuffle a list or pick a random element in Rust
- sample from a normal or other non-uniform distribution in Rust
- a seedable random generator whose output is the same on every platform

## Features

- standard RNG trait with strong and fast small generators
- automatically seeded thread-local generator
- uniform, ranged and non-uniform distributions (rand_distr)
- choose and shuffle helpers in rand::seq
- portably reproducible output
- partial no_std support

## Trust

Overall: 0.54 out of 1.
Signals: maintenance 0.65, adoption 0.67, momentum 0.36, community 1.00, backing 0.30, extensibility 0.00.

- last commit 9 days ago
- 8 commits in the last 90 days
- latest release 0.10.4 9 days ago
- 2.1k GitHub stars
- 312 contributors
- accepts sponsorship (Github)
- backed by rust-random

## Sources

[^1]: https://github.com/rust-random/rand/blob/master/Cargo.toml (checked 24 Nov 2026)
