Modulemersenne-random-pure64-0.2.2.0Haskell98
System.Random.Mersenne.Pure64.MTBlock
A purely functional binding 64 bit binding to the classic mersenne twister random number generator. This is more flexible than the impure 'mersenne-random' library, at the cost of being a bit slower. This generator is however, many times faster than System.Random, and yields high quality randoms with a long period.
Contents
- Packagemersenne-random-pure64-0.2.2.0
- Exports6
- LanguageHaskell98
- LicenceBSD-3-Clause
- SourceMTBlock.hs
Block type
Block functions
create a new MT block, seeded with the given Word64 value
step: create a new MTBlock buffer from the previous one
look up an element of an MT block
Misc functions
length of an MT block
MT's word mix function.
(MT applies this function to each Word64 from the buffer before returning it)