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.newRandomGeneratorCreates a new RandomGenerator object.Added since 0.9.0

Functions

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.Added since 0.9.0
RandomGenerator:getStateGets the current state of the random number generator.Added since 0.9.1
RandomGenerator:randomGenerates a pseudo random number in a platform independent way.Added since 0.9.0
RandomGenerator:randomNormalGet a normally distributed pseudo random number.Added since 0.9.0
RandomGenerator:setSeedSets the seed of the random number generator.Added since 0.9.0
RandomGenerator:setStateSets the current state of the random number generator.Added since 0.9.1

Supertypes

See Also

Other Languages

Personal tools