Setting a seed to shuffle ArrayList in Java deterministically

前端 未结 3 646
一向
一向 2021-01-07 17:13

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.

3条回答
提交回复
热议问题