php random 6digit number generator code example Example: php random number generator <?php echo rand(1,50); ?>