love.math.setRandomSeed
Available since LÖVE 0.9.0 |
This function is not supported in earlier versions. |
Sets the state ("seed") of the random number generator using the specified integer number.
Contents
Function
Sets the state of the random number generator using the specified integer number. Due to Lua's use of double-precision floating point numbers, integer values above 2^53 cannot be accurately represented.
Synopsis
love.math.setRandomState( state )
Arguments
number state
- The integer number with which you want to seed the randomization. Must be within the range of [1, 2^53].
Returns
Nothing.
Function
Combines two 32-bit integer numbers into a 64-bit integer value and sets the state of the random number generator using the value.
Synopsis
love.math.setRandomState( low, high )
Arguments
number low
- The lower 32 bits of the state value. Must be within the range of [0, 2^32 - 1].
number high
- The higher 32 bits of the state value. Must be within the range of [0, 2^32 - 1].
Returns
Nothing.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info