Skip to content

rand

Return a random integer in an inclusive range. Seed math.random for a repeatable sequence.

Parameters

  • min — The lowest value.
  • max — The highest value.
local damage = rand(1, 6)

Related: time_seconds.

See the runner timing guide for more examples and limits.