Back to Main Tutorial

 

How to create random number using php

Default random number

734315703

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

380

Random number with digit

If you want two digit number

81

If you want five digit number

66651

If you want nine digit number

790603261

If you want seven digit number

5895482

If you want one digit number

8