RandomGenerator

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