public function randomNumber($size, $withSpecialCharacters = false)
    {
        $code = "0123456789";
        $token = $this->generate($code, $size, $withSpecialCharacters);

        return $token;
    }
public function randomNumber($size, $withSpecialCharacters = false)
    {
        $code = "0123456789";
        $token = $this->generate($code, $size, $withSpecialCharacters);

        return $token;
    }
public function randomNumber ( $ size , $ withSpecialCharacters = false ) { $ code = "0123456789" ; $ token = $ this -> generate ( $ code , $ size , $ withSpecialCharacters ) ; return $ token ; }
Create a random number.

@param int $size
@param bool $withSpecialCharacters
@return string
@throws \Exception
Create a random number .