[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
**Subject**: **Purpose of second argument for math.randomseed**
**From**: Lorenzo Donati <lorenzodonatibz@...>
**Date**: Fri, 20 Jul 2018 23:41:13 +0200

Hi all!

`I've noticed that in the new 5.4.0-work2 release math.randomseed has got
``a new optional second argument.
`
Quoting the manual:
------------------------------------------------------------
math.randomseed (x [, y])

`Sets x and y as the "seed" for the pseudo-random generator: equal seeds
``produce equal sequences of numbers. The default for y is zero.
`------------------------------------------------------------

`Does anyone knows what's the purpose of the y argument, besides making
``the seed "bidmensional".
`
Cheers!
-- Lorenzo