Back to Main Tutorial

 

How to create random number using php

Default random number

289388294

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

645

Random number with digit

If you want two digit number

19

If you want five digit number

84864

If you want nine digit number

157669758

If you want seven digit number

4805549

If you want one digit number

8