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. When lovr.math is first loaded, the random generator is seeded with the current time.

lovr.math.setRandomSeed(seed)

Arguments

NameTypeDescription
seednumber The new seed.

Returns

Nothing

See also