dimanche 25 septembre 2022

Random integers between 1 to max value of unsigned 32 bit integer without duplicates [closed]

I want to generate random integers between 1 to max size of unsigned 32 bit integer. I have tried ThreadLocalRandom but it is generating too many duplicates. Generator function should be thread safe.




Aucun commentaire:

Enregistrer un commentaire