Back to Main Tutorial

 

How to create random number using php

Default random number

1998722061

Random number for specified(with min number and max number)

868

Random number with digit

If you want two digit number

34

If you want five digit number

41419

If you want nine digit number

500175444

If you want seven digit number

6870082

If you want one digit number

6