FANDOM



random([<fNumber1>] [, <fNumber2>])
Description (from LUA 4 Manual: 6.3 Mathematical Functions)
"The function random, when called without arguments, returns a pseudo-random real number in the range [0,1]. When called with a number <fNumber1>, random returns a pseudo-random integer in the range [1,<fNumber1>]. When called with two arguments, <fNumber1> and <fNumber2>, random returns a pseudo-random integer in the range [<fNumber1>,<fNumber2>]."
Example


Arguments
<fNumber1>: a number.
<fNumber2>: a number.
Scope
Related Pages

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.