question

Akhil raja rao K avatar image
0 Likes"
Akhil raja rao K asked Joerg Vogel answered

how to do coding in round robin?

FlexSim 19.0.2
codingrandom sequenceroundrobin
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Akhil raja rao K commented
int index = 0;
Array sequence =[1,3,5,6,7,8,9,12,15];
for (int cnt = 0; cnt < 1000; cnt++)// any value that increase would do it
{  index = cnt%sequence.length+1;// modulus operator 
   // over the increased value by the length of the array
   print(sequence[index]); // 1,3,5,6,7,8,9,12,15 several times
}
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.