I have a list of integers (currently using cern.colt.list.IntArrayList). I can call “shuffle()” and randomly shuffle them. I would like to be able to reproduce a shuffle. I can reproduce a series of random numbers by setting a seed. I do not seem to be able to set a seed in this case. What should I do? I am open to other implementations.
I have a list of integers (currently using cern.colt.list.IntArrayList ). I can call shuffle()
Share
This is possible by using the shuffle method that allows you to provide the backing
Randominstance:Collections.shuffle(List<?> list, Random rnd):Example: