Homeworld 2 : Functionrandom
Karos Graveyard ::
Function Reference :: Scope Reference :: Variable Reference
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.

Related Functions
:: ::
Hide Download Bar
Ctrl + Shift + Z = Show/Hide Download Bar
Downloads
Download Manager (S3)
Clear
Left Click: Clear All Finished
Right Click: Undo last clear
100%
Download History
Download list is empty
Functionrawgetglobal.html
100%
--:--
495 KB
-.--
Functionrawgetglobal.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\Functionrawgetglobal.html
Status:
495 KB / 495 KB ( -.-- )
File Size:
495 KB
Virus scan:
Time Start:
2019.08.22 - 03:02:57
Time to Complete:
00:02
Time Left:
--:--
Percent Done:
100%
Average Speed:
314 KB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop