Integer ng.random (Integer start, Integer end, [Array | Integer not_in = []]) vs. 1.1.0 Full+Lite

This function will generate a random number between the start and end. If an array is passed as the not_in parameter, the random number will not match any value from the array.

Parameters

Integer start Required vs. 1.1.0 Full+Lite
The lowest value for the random number.
Integer end Required vs. 1.1.0 Full+Lite
The greatest value for the random number.
Array | Integer not_in (Optional - Default: []) vs. 1.1.0 Full+Lite
Any values to exclude when creating the random number.

Return

Integer Required vs. 1.1.0 Full+Lite
The randomly generated number.

Examples

Using ng.random(start, end, not_in)
Demo: