Homeworld 2 : FunctionRandomIntMax
Karos Graveyard ::
Function Reference :: Scope Reference :: Variable Reference
RandomIntMax(<fMax>)

Description
Returns a random, integer number between 0 and <fMax> (inclusive).

Example
RandomIntMax(512)

Arguments
<fMax>: a number. Note: not sure if this needs to be an integer, or can be a float. -Mikail

Related Pages:
 Comments [Hide comments/form]
On paper, it is exactly the same as the stock lua random(Integer); in practice, it does not seem to work 'randomly'.
-- SunTzu (2005-12-16 02:54:35)
You can also try my random number functions in the User Function section.
-- MiKail (2005-12-19 17:56:57)
:: ::