jeudi 10 mai 2018

php generate Random number without repetition without loop for mt_rand and without using range() and shuffle()

How to generate specific quantity of unique random numbers(say 10000) with in a specific range of numbers like (000000000,999999999) without repeatedly using rand(),mt_rand() under for loop as it takes time. Is there any php library which takes min, max and count and returns the unique random numbers equal to the count.




Aucun commentaire:

Enregistrer un commentaire