haskell / mwc-random

A very fast Haskell library for generating high quality pseudo-random numbers.
http://hackage.haskell.org/package/mwc-random
BSD 2-Clause "Simplified" License
55 stars 25 forks source link

Documentation and Examples? #56

Closed michaellindon closed 4 years ago

michaellindon commented 7 years ago

I'm a beginner in Haskell coming from a statistics background. It seems this package is what I need in order to generate pseuo random numbers but I'm finding it difficult to get up to speed with. Is there any documentation or examples to be found? Simply generating a lazy list of normal random numbers would be extremely illustrative. Thanks!

Shimuuar commented 7 years ago

There're few simple example in the haddocks. But in the tradeoff between ease of use and efficiency this library chooses efficiency. All PRNG is mutable and all operations are done in the IO/ST monad. Thus good understanding of them are required

Shimuuar commented 4 years ago

Fixed as of efd149fda3d1d42590c3dfb57b62f90c82cd42d9