Mod:Creation Kit/RandomInt - Utility

Member of: Mod:Creation Kit/Utility Script

Generates a random integer between the minimum and maximum values (inclusive).

Syntax
int Function RandomInt(int aiMin = 0, int aiMax = 100) native global

Parameters

 * aiMin: The minimum value for the random integer.
 * Default: 0
 * aiMax: The maximum value for the random integer.
 * Default: 100

Return Value
A random integer between aiMin and aiMax (inclusive)

Examples
int random = Utility.RandomInt int random = Utility.RandomInt(0, 10)
 * Get a random number between 0 and 100
 * Get a random number between 0 and 10