02.03.2019, 19:22
You could generate a random one. random(80000) + 5000. This is most definitely never going to give you the same number. However, if you wish to be absolute to never get the same number for two users, you might create a function to save used numbers and always check, if the number exists in the list.