NX GetRandom

From GECK
Jump to: navigation, search


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