mathRand

Returns a random integer in a specified range. Takes min (minimum value), max (maximum value). Returns a random integer between min and max inclusive.

Mathematics

Parameters & Returns

Parameters

min Int
max Int

Returns

Int

Quick Summary

Returns a random integer in a specified range. Takes min (minimum value), max (maximum value). Returns a random integer between min and max inclusive.

Technical Exegesis...

Generates a pseudo-random integer between min and max (inclusive). If min > max, the parameters are automatically swapped.

Automatically initializes the random number generator on first use with a time-based seed. Useful for dice rolls, random indices, and discrete random choices.

Example

Example.bam
; No example implemented yet