remove_randomise_repeat.omp (3.4 KB)
Good morning all,
I have a little recursion question.
I have an even number of elements in a list, and I wish to remove one element randomly. I then want to randomly permute that result. I would then like to repeat that process until half the original string length is left; for example, if 10 elements long, a list of five would be the final output. So, for example:
ABCDEFGHIJ
BDCEGFHID
DIHFEGC
Until
CGHFE
My patch so far is basic (and by repeating this process full of problems as elements keep being scrambled!)
Any suggestions or help much appreciated.
Thank you!
Krhes