Difference between revisions of "RandomGenerator:getSeed"
(Created page) |
m (moved RandomGenerator:getState to RandomGenerator:getSeed: Renamed) |
(No difference)
|
Revision as of 02:59, 2 December 2013
Available since LÖVE 0.9.0 |
This function is not supported in earlier versions. |
Gets the state of the random number generator object.
The state 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.
Function
Synopsis
low, high = RandomGenerator:getState( )
Arguments
None.
Returns
number low
- Integer number representing the lower 32 bits of the RandomGenerator's 64 bit state value.
number high
- Integer number representing the higher 32 bits of the RandomGenerator's 64 bit state 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