dimanche 30 juillet 2017

Get percentage unique numbers generated by random generator

I am using random generator in my code. I want to get the percentage of unique random numbers generated over a huge range like from random(0:10^8). What could be the efficient algorithm in terms of space complexity?




Aucun commentaire:

Enregistrer un commentaire