If I was to create a Random object with a seed:
Random seedRand = new Random(Long.parseLong(seed, Character.MAX_RADIX));
This will give the same randomness per request.
If I was to shuffle an ArrayList with this seed, will it always shuffle the array the same way (if the list is unchanged).
Collections.suffle(list,seedRand)
Just getting weird results in computation, not sure if it is due to this or other calculations.
Thanks
Aucun commentaire:
Enregistrer un commentaire