# random

> Pseudo-random number generation for Haskell

Source: https://talira.ai/catalog/random-v3g277x0
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: BSD-3-Clause[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Haskell Core Libraries Committee](https://talira.ai/orgs/haskell-clc.md)

random is Haskell's standard library for pseudo-random number generation, maintained by the Core Libraries Committee. Its pure interface in System.Random draws numbers from a generator such as StdGen and returns the next generator, and generators can be split into independent ones; its monadic interface in System.Random.Stateful draws from mutable generators or wraps pure ones with an adapter. Uniform values come from uniform and uniformR for many types.

## Links

- GitHub: https://github.com/haskell/random

## Problems it solves

- generate random numbers in pure Haskell code
- simulate dice rolls or random samples reproducibly from a seed
- split one random generator into independent streams for parallel code

## Features

- pure pseudo-random number generators
- splittable generators
- monadic interface over mutable generators
- uniform and ranged values for many types

## Trust

Overall: 0.29 out of 1.
Signals: maintenance 0.27, adoption 0.36, momentum 0.04, community 0.79, backing 0.30, extensibility 0.00.

- 59 GitHub stars
- 94 contributors
- backed by Haskell Core Libraries Committee

Warnings:

- last commit 11 months ago

## Alternatives

- [MonadRandom](https://talira.ai/catalog/monadrandom-66qvzv5r.md): Random-number generation monad for Haskell
- [mwc-random](https://talira.ai/catalog/mwc-random-m2fcfxtd.md): Fast, high-quality pseudo-random number generation for Haskell

## Sources

[^1]: https://github.com/haskell/random/blob/master/LICENSE (checked 28 Nov 2026)
[^2]: https://github.com/haskell/random/blob/master/random.cabal (checked 28 Nov 2026)
