CreateCyclicArray

int[] CreateCyclicArray(int inSize, int inStart)

Description

Returns an integers array in the range of [1,inSize], in a cyclic order, starting with the number inStart.

Parameters

The following is a list of parameters the functions receives 

Parameter Type Description
inSize Int32 Size (elements amount) of array
inStart Int32 a number in the range of [1, inSize] to start the cycle with

Return Type

Int[]  

Example

CreateCyclicArray(5,3), will return the following array: [3,4,5,1,2]

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.