love.math.getRandomSeed
Available since LÖVE 0.9.0 |
This function is not supported in earlier versions. |
Gets the seed of the random number generator.
The seed is split into two numbers due to Lua's use of doubles for all number values - doubles can't accurately represent integer values above 2^53, but the seed can be an integer value up to 2^64.
Function
Synopsis
low, high = love.math.getRandomSeed( )
Arguments
None.
Returns
number low
- Integer number representing the lower 32 bits of the random number generator's 64 bit seed value.
number high
- Integer number representing the higher 32 bits of the random number generator's 64 bit seed value.
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