Back to Main Tutorial

 

How to create random number using php

Default random number

850538925

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

949

Random number with digit

If you want two digit number

45

If you want five digit number

44922

If you want nine digit number

959811646

If you want seven digit number

1252743

If you want one digit number

1