Difference between revisions of "RandomGenerator"
(Created page with "{{newin|0.9.0|090|type=type}} A random number generation object that has a independent random state. == Constructors == {{#ask: Category:Functions [[Constructs::RandomGe...") |
m (Temporarily made newin 0.9.0 functions visible) |
||
Line 3: | Line 3: | ||
== Constructors == | == Constructors == | ||
− | {{#ask: [[Category:Functions]] [[Constructs::RandomGenerator | + | {{#ask: [[Category:Functions]] [[Constructs::RandomGenerator]] |
| headers=hide | | headers=hide | ||
| default=None. | | default=None. | ||
Line 9: | Line 9: | ||
}} | }} | ||
== Functions == | == Functions == | ||
− | {{#ask: [[Category:Functions]] [[parent::RandomGenerator||Object | + | {{#ask: [[Category:Functions]] [[parent::RandomGenerator||Object]] |
| headers=hide | | headers=hide | ||
| ?Description | | ?Description |
Revision as of 01:49, 17 June 2013
Available since LÖVE 0.9.0 |
This type is not supported in earlier versions. |
A random number generation object that has a independent random state.
Constructors
love.math.newRandomGenerator | Creates a new RandomGenerator object. |
Functions
Object:release | Immediately destroys the object's Lua reference. |
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. |
RandomGenerator:getState | Gets the current state of the random number generator. |
RandomGenerator:random | Generates a pseudo-random number in a platform independent manner. |
RandomGenerator:randomNormal | Get a normally distributed pseudo random number. |
RandomGenerator:setSeed | Sets the seed of the random number generator. |
RandomGenerator:setState | Sets the current state of the random number generator. |
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