Function; RandomIntMax - HWRM/KarosGraveyard GitHub Wiki

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. -Mikali

Related Pages

Function Reference

SCAR (SCripting at Relic) Reference

Comments

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.

--Mikali (2005-12-19 17:56:57)

Page Status

Updated Formatting? Initial
Updated for HWRM? Initial

⚠️ **GitHub.com Fallback** ⚠️