Available since LÖVE 0.9.0 |
This function is not supported in earlier versions. |
Sets the seed of the random number generator using the specified integer number. This is called internally at startup, so you generally don't need to call it yourself.
love.math.setRandomSeed( seed )
number seed
Nothing.
Due to Lua's use of double-precision floating point numbers, integer values above 2^53 cannot be accurately represented. Use the other variant of the function if you want to use a larger number.
Combines two 32-bit integer numbers into a 64-bit integer value and sets the seed of the random number generator using the value.
love.math.setRandomSeed( low, high )
number low
number high
Nothing.
love.math.setRandomSeed(love.timer.getTime())