mwc-random

Fast, high quality pseudo random number generation

https://github.com/bos/mwc-random

Version on this page:0.13.5.0
LTS Haskell 22.13:0.15.0.2@rev:1
Stackage Nightly 2024-03-14:0.15.0.2@rev:1
Latest on Hackage:0.15.0.2@rev:1

See all snapshots mwc-random appears in

BSD-3-Clause licensed and maintained by Bryan O'Sullivan
This version can be pinned in stack with:mwc-random-0.13.5.0@sha256:8928cbbc51c98ad6078e71a97fdeb847b958a93380d421e47801d0f8292e5270,2327

Module documentation for 0.13.5.0

Efficient, general purpose pseudo-random number generation

This package provides the System.Random.MWC module, a Haskell library for generating high-quality pseudo-random numbers in a space- and time-efficient way.

Get involved!

Please report bugs via the github issue tracker.

Master git git repository:

  • git clone git://github.com/bos/mwc-random.git

There’s also a Mercurial mirror:

  • hg clone http://bitbucket.org/bos/mwc-random

(You can create and contribute changes using either Mercurial or git.)

Authors

This library is written and maintained by Bryan O’Sullivan, [email protected].

Changes

Changes in 0.13.5.0

  • logCategorical added

Changes in 0.13.4.0

  • withSystemRandom uses RtlGenRandom for seeding generator on windows

Changes in 0.13.3.1

  • primitive-0.6 compatibility

Changes in 0.13.3.0

  • Monadic variant of vector shuffle added: uniformShuffleM

  • Context on uniformShuffle loosened

Changes in 0.13.2.2

  • Fixed crash during gen. initialization on Windows when stderr is not available (#36).

Changes in 0.13.2.0

  • Generators for beta, Bernoully, Dirichlet and categorical distributions added.

  • Functions for generating random shuffles added.

Changes in 0.13.1.2

  • GHC 7.9 support

Changes in 0.13.1.1

  • Long standing performance problem in normal distribution fixed (#16)

Changes in 0.13.1.0

  • createSystemRandom added

Changes in 0.13.0.0

  • Workaround for GHC bug 8072 (bug 25). GHC 7.6 on 32-bit platrofms is affected.

  • Generators for truncated exponential and geometric distributions added.

Changes in 0.12.0.0

  • Fucntion asGenIO and asGenST added.

  • Generation of discrete random variates using condensed tables methed. Tables for Poisson and binomial distributions are provided.