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]] [[Concept:Current]]
+
{{#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]] [[Concept:Current]]
+
{{#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.newRandomGeneratorCreates a new RandomGenerator object.

Functions

Object:releaseImmediately destroys the object's Lua reference.
Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.
RandomGenerator:getSeedGets the seed of the random number generator.
RandomGenerator:getStateGets the current state of the random number generator.
RandomGenerator:randomGenerates a pseudo-random number in a platform independent manner.
RandomGenerator:randomNormalGet a normally distributed pseudo random number.
RandomGenerator:setSeedSets the seed of the random number generator.
RandomGenerator:setStateSets the current state of the random number generator.

Supertypes

Object

See Also

Other Languages