lovr.math.setRandomSeed

Seed the random generator with a new seed. Each seed will cause lovr.math.random and lovr.math.randomNormal to produce a unique sequence of random numbers. This is done once automatically at startup by lovr.run.

lovr.math.setRandomSeed(seed)

Arguments

NameTypeDescription
seednumberThe new seed.

Returns

Nothing

See also