lovr.math.setRandomSeed

Edit

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
seednumber The new seed.

Returns

Nothing

See also