pcgen

A fast pseudorandom number generator, as presented by M.E. O'Neill on http:www.pcg-random.org, See that site for information on the particulars of the technique used. This particular implementation uses two Word64 of internal data and produces a Word32 of output per step. On 64-bit machines it's two to three times as fast as StdGen and uses the same amount of space.


Keywords
apache, benchmark, library, test, Data.PCGen, http://www.pcg-random.org, random, haskell, haskell-library, random-number-generators
License
Apache-2.0
Install
cabal install pcgen-2.0.1

Documentation

pcgen

License

A fast pseudorandom number generator, as presented by M.E. O'Neill on http://www.pcg-random.org. See that site for information on the particulars of the technique used.

This implementation uses two Word64 of internal data and produces a Word32 of output per step. It's two to three times as fast as StdGen.

The generator implements the RandomGen typeclass from the random package, but also provides its step function as a stand alone function that you can use without the typeclass.