Back to Main Tutorial

 

How to create random number using php

Default random number

620943334

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

706

Random number with digit

If you want two digit number

57

If you want five digit number

99342

If you want nine digit number

335329166

If you want seven digit number

1262281

If you want one digit number

7