Lfrand module
This module implements a 'Lagged Fibonacci' pseudo-random number generator. This type of RNG gives considerably better quality numbers than the standard Builtins::rand function, and so is suitable for use in simulations requiring a good degree of randomness (though not in cryptography).
You should call lfSrand before using other functions from this module.
Data types
- Lfrand::Dicespec - Dice specification.
Exceptions
- ValueOutOfRange - Negative value
Functions
- Int lfDice(Dicespec dicespec) - Simulate rolling dice
- Int lfIntRand(Int randsize) - Return a random Int
- Float lfRand(Float randsize) - Return a random Float
- Int lfRawRand() - Return the next value
- Void lfSrand(Int seed) - Seed the generator