Back to Main Tutorial

 

How to create random number using php

Default random number

1742300182

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

631

Random number with digit

If you want two digit number

73

If you want five digit number

13551

If you want nine digit number

297312195

If you want seven digit number

3654273

If you want one digit number

3