I want to generate a random number in PHP where the digits itself should not repeat in that number.
Is that possible?
Can you paste sample code here?
Ex: 674930, 145289. [i.e Same digit shouldn’t come]
Thanks
I want to generate a random number in PHP where the digits itself should
Share
Here is a good way of doing it:
If you wanted it in a neat function you could create something like this: