Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Shuffle blocks in loop

Hi everyone!

I have an experiment which I need to shuffle blocks in loop object code. Thing is that I have an array of length 200 values. I need to shuffle only 50 at one in the block, e.g. first block 50 shuffled, second block 50 shuffled values.

I found a that I can shuffle a column in the loop by calling shuffle <name_of_collumn> and slice index1 index2. I though I could run something like:

slice 0 49
shuffle <name_of_column>
slice 50 99
shuffle <name_of_column>
slice 100 149
shuffle <name_of_column>
slice 150 199
shuffle <name_of_column>

But this is not working since I don't have any chance to "reset" the slice I have done before. Is there any way how could I shuffle only specified blocks, not the entire column?

Thank you very much!

Michael

Comments

Sign In or Register to comment.