Back to Main Tutorial

 

How to create random number using php

Default random number

1955720833

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

951

Random number with digit

If you want two digit number

24

If you want five digit number

27199

If you want nine digit number

476934647

If you want seven digit number

4177721

If you want one digit number

1