protected function generateRandomAlphabets($times = 1, $characters = null)
    {
        $characters = $characters ?: $this->defaultCharacters;

        $result = [];
        for ($i = 0; $i < $times; $i++) {
            $result[] = str_shuffle(count_chars($characters, 3));
        }

        return $result;
    }
protected function generateRandomAlphabets($times = 1, $characters = null)
    {
        $characters = $characters ?: $this->defaultCharacters;

        $result = [];
        for ($i = 0; $i < $times; $i++) {
            $result[] = str_shuffle(count_chars($characters, 3));
        }

        return $result;
    }
protected function generateRandomAlphabets ( $ times = 1 , $ characters = null ) { $ characters = $ characters ? : $ this -> defaultCharacters ; $ result = [ ] ; for ( $ i = 0 ; $ i < $ times ; $ i ++ ) { $ result [ ] = str_shuffle ( count_chars ( $ characters , 3 ) ) ; } return $ result ; }
Generate random alphabets.

@param  int  $times
@param  string  $characters
@return array
Generate random alphabets .