Module rand

Random number generation utility.

Local Functions

setrandomseed (seed, verbose) Set the randomseed to seed.


Local Functions

setrandomseed (seed, verbose)
Set the randomseed to seed.

Parameters:

  • seed Number to be passed to math.randomseed. If nil, a number is taken from /dev/urandom or os.time() is used.
  • verbose Boolean: if true, print the seed.
generated by LDoc Last updated 2017-01-05 15:53:41