Back to Main Tutorial

 

How to create random number using php

Default random number

276727895

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

362

Random number with digit

If you want two digit number

45

If you want five digit number

65100

If you want nine digit number

522009818

If you want seven digit number

9099295

If you want one digit number

2