Back to Main Tutorial

 

How to create random number using php

Default random number

2065174255

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

810

Random number with digit

If you want two digit number

22

If you want five digit number

71789

If you want nine digit number

978245927

If you want seven digit number

8222967

If you want one digit number

9