# rust-random/rand

A Rust library for random number generation.

Repository: https://github.com/rust-random/rand
Canonical: https://ross.abutalabs.com/products/rand
Homepage: https://crates.io/crates/rand
Language: Rust
License: NOASSERTION
License Family: other
Last push: 2026-08-25T07:57:30+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 4229, "days_push": 8, "days_rel": 8, "gap_med": 9, "n_releases_24m": 12}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2068, forks 509 (observed 2026-08-28T04:06:10.247190+00:00)

## What it is
Rand is a set of Rust crates providing random number generation, including a standard RNG trait, fast pseudo-random and cryptographically-secure generators, and sampling from uniform and non-uniform distributions. It supports reproducible output, partial no_std compatibility, and random processes like choosing and shuffling.

## Use cases
- generate random numbers in Rust
- sample from probability distributions
- shuffle collections randomly
- seed random number generators from OS entropy
- generate cryptographically secure random values
- reproducible random number generation across platforms

## When to avoid
- you want a tiny, simple RNG library (consider fastrand or oorandom)
- you need a full cryptographic library rather than just randomness

## Facets
- artifact type: library
- maturity: stable
- function: machine-learning, math, cryptography, simulation
- domain: developer-tools, simulation
- platform: rust, cross-platform
- tags: random-number-generation, rng, prng, csprng, no-std, distributions, shuffling, algorithms

## Member repositories
- rust-random/rand (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:10.247190+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:56:48.002287+00:00, confidence not recorded.
  - readme: https://github.com/rust-random/rand (fetched 2026-08-28T04:06:10.247190+00:00, sha e714d78dc67e)
  - registry_crates: https://crates.io/api/v1/crates/rand (fetched 2026-08-29T10:37:01.657406+00:00, sha 848fefe8f359)
- Data as of 2026-08-30T08:39:29.467469+00:00.
