RandomGenerator

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: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

RandomGenerator:setSeed

RandomGenerator:setSeed Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the seed of the random number generator

2017-03-21 15:52:31
RandomGenerator:random

RandomGenerator:random Available since LÖVE 0.9.0 This function is not supported in earlier versions. Generates a pseudo-random number in a

2017-03-21 15:52:30
RandomGenerator:setState

RandomGenerator:setState Available since LÖVE 0.9.1 This function is not supported in earlier versions. Sets the current state of the random

2017-03-21 15:52:31
RandomGenerator:getSeed

RandomGenerator:getSeed Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the seed of the random number generator

2017-03-21 15:52:29
RandomGenerator:randomNormal

RandomGenerator:randomNormal Available since LÖVE 0.9.0 This function is not supported in earlier versions. Get a normally distributed pseudo

2017-03-21 15:52:30
RandomGenerator:getState

RandomGenerator:getState Available since LÖVE 0.9.1 This function is not supported in earlier versions. Gets the current state of the random

2017-03-21 15:52:29