NX GetRandom

From the Fallout3 GECK Wiki
Revision as of 13:08, 28 June 2014 by imported>Odessa (Created page with "{{Function |origin = NX |summary = Returns a random int between the specified minimum and maximum, <i>inclusive</i>. |name = NX_GetRandom |returnType = int |arguments = {...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the NX NVSE plugin.

Description

Returns a random int between the specified minimum and maximum, inclusive.

Syntax

[help]
(int) NX_GetRandom Min:int Max:int

Example

int iValue
let iValue := NX_GetRandom 1, 5 ; * for 1, 2, 3, 4 or 5

See Also