setRandomSeed.lua 517 B

12345678910111213141516171819202122
  1. return {
  2. tag = 'random',
  3. summary = 'Set the random seed.',
  4. description = [[
  5. Seed the random generator with a new seed. Each seed will cause `lovr.math.random` and
  6. `lovr.math.randomNormal` to produce a unique sequence of random numbers. This is done once
  7. automatically at startup by `lovr.run`.
  8. ]],
  9. arguments = {
  10. seed = {
  11. type = 'number',
  12. description = 'The new seed.'
  13. }
  14. },
  15. returns = {},
  16. variants = {
  17. {
  18. arguments = { 'seed' },
  19. returns = {}
  20. }
  21. }
  22. }