Core API Reference: Number Random

From Color Infection Wiki

Jump to: navigation, search


Contents


Fast Random

Get a random number between 0 and 1. The API is fast and the result is good enough for most cases.

Input Parameters:

(none)

Output Parameters:

Random Number
a random value between 0 and 1 (not include 1).
Fast Random Between

Get a random number between 2 specified numbers. The API is fast and the result is good enough for most cases.

Input Parameters:

Min Number
the lower limit of the random number.
Max Number
the upper limit of the random number.

Output Parameters:

Random Number
a random number between the 2 input numbers (not include the larger one).
Fast Integer Random Between

Get a random integer number between 2 specified interger numbers. The API is fast and the result is good enough for most cases.

Input Parameters:

Min Integer Number
the lower limit of the random number.
Max Integer Number
the upper limit of the random number.

Output Parameters:

Random Number
a random integer number between the 2 input integer numbers (not include the larger one).
Personal tools