src/ExamplesService/Type.php
public function string(int $length = 8)
    {
        $list = 'abcdefghijklmnopqrstuvwxyz';
        $return = '';
        for ($i = 0; $i < $length; $i++) {
            $return .= $list[rand(0, strlen($list) - 1)];
        }

        return $return;
    }
public function string(int $length = 8)
    {
        $list = 'abcdefghijklmnopqrstuvwxyz';
        $return = '';
        for ($i = 0; $i < $length; $i++) {
            $return .= $list[rand(0, strlen($list) - 1)];
        }

        return $return;
    }
public function string ( int $ length = 8 ) { $ list = 'abcdefghijklmnopqrstuvwxyz' ; $ return = '' ; for ( $ i = 0 ; $ i < $ length ; $ i ++ ) { $ return .= $ list [ rand ( 0 , strlen ( $ list ) - 1 ) ] ; } return $ return ; }
Return a simple random string.

taken from character list : 0123456789abcdefghijklmnopqrstuvwxyz

@httpmethod GET
@auth None

@param int $length the length of generated string

@return string the generated random string
Return a simple random string .