Translations:Extension:Scribunto/Lua reference manual/373/en

From testwiki
Jump to navigation Jump to search

The arguments m and n may be omitted, but if specified must be convertible to integers.

  • With no arguments, returns a real number in the range [0,1)
  • With one argument, returns an integer in the range [1,m]
  • With two arguments, returns an integer in the range [m,n]