<?php $rand = substr(str_shuffle("ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrst-1234567890"), -26) ?> |
It will generate a 26 character alpha-numeric random number .
<?php $randomValue=rand(1000000000,9999999999); ?> |
It will generate a 10 digit length random number .