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
  1. int index = 0;
  2. Array sequence =[1,3,5,6,7,8,9,12,15];
  3. for (int cnt = 0; cnt < 1000; cnt++)// any value that increase would do it
  4. { index = cnt%sequence.length+1;// modulus operator
  5. // over the increased value by the length of the array
  6. print(sequence[index]); // 1,3,5,6,7,8,9,12,15 several times
  7. }
5 |100000

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