IUserAccessiableCreateRandomArray Method (Int32, Int32, Int32) |
Returns an integers array with size inSize, containing numbers in the range [inMinValue,inMaxValue], in randomized order.
values amount in the range [inMinValue,inMaxValue] must be equal to or greater than inSize.
Namespace: SurveyToGo.UserLogic.InterfacesAssembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax int[] CreateRandomArray(
int inSize,
int inMinValue,
int inMaxValue
)
Parameters
- inSize
- Type: SystemInt32
represents both result array size and the max value of the content range - inMinValue
- Type: SystemInt32
minimal number value for array's content - inMaxValue
- Type: SystemInt32
maximal number value for array's content
Return Value
Type:
Int32integers array (int[] type)
Examples
CreateRandomArray(5,2,10), will return an array with size of 5 (5 cells); the array's values content are 5 numbers within the range [2,10], placed in each cell, in randomized order.
See Also