Back to Main Tutorial

 

How to create random number using php

Default random number

2097414017

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

10

Random number with digit

If you want two digit number

59

If you want five digit number

35038

If you want nine digit number

489303305

If you want seven digit number

4766216

If you want one digit number

7