public function randomNumbers($length = 6)
    {
        $nums = '0123456789';

        $out = $nums[mt_rand(1, strlen($nums)-1)];

        for ($p = 0; $p < $length-1; $p++) {
            $out .= $nums[mt_rand(0, strlen($nums)-1)];
        }

        return $out;
    }
public function randomNumbers($length = 6)
    {
        $nums = '0123456789';

        $out = $nums[mt_rand(1, strlen($nums)-1)];

        for ($p = 0; $p < $length-1; $p++) {
            $out .= $nums[mt_rand(0, strlen($nums)-1)];
        }

        return $out;
    }
public function randomNumbers ( $ length = 6 ) { $ nums = '0123456789' ; $ out = $ nums [ mt_rand ( 1 , strlen ( $ nums ) - 1 ) ] ; for ( $ p = 0 ; $ p < $ length - 1 ; $ p ++ ) { $ out .= $ nums [ mt_rand ( 0 , strlen ( $ nums ) - 1 ) ] ; } return $ out ; }
Generate random numbers
@param  integer $length
@return string
Generate random numbers