late reaction, but the easiest fix, I think, is to generate a random integer list with a random generator from the internet, then put this in an array like:
then generate a new array from this with a for-loop:
//next one uses a "smooth" over the update of an array, smoothly fading from the old array in pesition into Position.
where seed1 functions as an offset to the readout position of the array and seed2 controls how it steps through the array. the "/2048)*2048 limits the random selection to the 2048 points in the array and wraps back to zero if it would have gone over.