fixing shuffling of indices

Manuel Guth requested to merge mguth-rng-fix into master

There was a bug spotted by @svanstro in the preprocessing, such that the shuffling of two arrays is not the same when being called after each other

The implementation is not optimal, but should work

Edited by Manuel Guth

Merge request reports