Difference between revisions of "RandomGenerator"
m (add parent:: in supertypes) |
m (Add PrettyDeprecated) |
||
Line 13: | Line 13: | ||
| ?PrettySince | | ?PrettySince | ||
| ?PrettyRemoved | | ?PrettyRemoved | ||
+ | | ?PrettyDeprecated | ||
}} | }} | ||
== Functions == | == Functions == | ||
Line 24: | Line 25: | ||
| ?PrettySince | | ?PrettySince | ||
| ?PrettyRemoved | | ?PrettyRemoved | ||
+ | | ?PrettyDeprecated | ||
}} | }} | ||
== Supertypes == | == Supertypes == |
Revision as of 02:40, 26 June 2019
Available since LÖVE 0.9.0 |
This type is not supported in earlier versions. |
A random number generation object which has its own random state.
Constructors
love.math.newRandomGenerator | Creates a new RandomGenerator object. | 0.9.0 |
Functions
Object:release | Immediately destroys the object's Lua reference. | 11.0 | |
Object:type | Gets the type of the object as a string. | ||
Object:typeOf | Checks whether an object is of a certain type. | ||
RandomGenerator:getSeed | Gets the seed of the random number generator. | 0.9.0 | |
RandomGenerator:getState | Gets the current state of the random number generator. | 0.9.1 | |
RandomGenerator:random | Generates a pseudo-random number in a platform independent manner. | 0.9.0 | |
RandomGenerator:randomNormal | Get a normally distributed pseudo random number. | 0.9.0 | |
RandomGenerator:setSeed | Sets the seed of the random number generator. | 0.9.0 | |
RandomGenerator:setState | Sets the current state of the random number generator. | 0.9.1 |
Supertypes
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