pcgen: A fast, pseudorandom number generator.

[ apache, library, random ] [ Propose Tags ] [ Report a vulnerability ]

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.


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 1.0.0, 2.0.0, 2.0.1 (info)
Dependencies base (>=4.7 && <5), random (<=1.1) [details]
License Apache-2.0
Copyright 2017 Daniel Gee
Author Daniel "Lokathor" Gee
Maintainer zefria@gmail.com
Category Random
Home page https://github.com/Lokathor/pcgen-hs
Uploaded by Lokathor at 2017-07-05T02:34:40Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 2016 total (15 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-07-05 [all 1 reports]

Readme for pcgen-2.0.1

[back to package description]

pcgen

License

A fast pseudorandom number generator, as presented by M.E. O'Neill on [http://www.pcg-random.org](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.