int[] CreateRandomArray(int inSize)
Description
Returns an integers array, containing numbers in the range [1,inSize], in a randomized order.
Parameters
The following is a list of parameters the functions receives
Parameter | Type | Description |
---|---|---|
inSize | Int32 | Size (elements amount) of array |
Return Type
int[]
Example
CreateRandomArray(5), will return an array with a size of 5 (5 cells); the array's values content are the numbers 1,2,3,4,5, placed in randomized order. For example, this can be the array: [2,5,1,4,3] (or any other random order of this set of numbers)
Overloads
List of overloads for this function
int[] CreateRandomArray(int inSize, int inMinValue, int inMaxValue)
Parameters for overloads:
Parameter | Type | Description |
---|---|---|
inSize | Int32 | Size (elements amount) of array |
inMinValue | Int32 | Minimal range value |
inMaxValue | bool | Maximal range value |
Comments
Please sign in to leave a comment.