-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Pseudo random numbers can be generated quickly, when you need a lot of them. May be useful for Procedural generation or Monte Carlo simulation.
haskell/random
High level
- RandomGen: Interface to pure PRNG
- StdGen: Standard PRNG
- Random: Generate random "number"
- uniform(): Uniform over type range
- uniformR(): Uniform over given range
- splitmix: Fast Splittable PRNG
RandomGen class
- genWord8()
- genWord16()
- genWord32()
- genWord64()
- genWord32R()
- genWord64R()
- genShortByteString()
- split(): Return two PRNGs
- uniform()
- uniformM(): Pure uniform()
- uniformR()
- uniformRM(): Pure uniformR()
- genByteString()
Random class
- randomR()
- random()
- randomRs(): Generator version of randomR()
- randoms(): Generator version of random()
StdGen class
The are also global variants of the functions.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels