Setting a seed to shuffle ArrayList in Java deterministically

This is possible by using the shuffle method that allows you to provide the backing Random instance: Collections.shuffle(List<?> list, Random rnd):

Example:

Collections.shuffle(yourList, new Random(somePredefinedSeed));

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)