original_string: protected function randomlyCapitalize()
      {
          $chars = str_split($this->password);
          $letter_positions = Array();
          foreach ($chars as $key => $char) {
              if (!is_numeric($char)) {
                  $letter_positions[] = $key;
              }
          }
  
  
          $random_letter = $letter_positions[array_rand($letter_positions)];
  
          $chars[$random_letter] = ucwords($chars[$random_letter]);
  
          $this->password = implode('', $chars);
      }
code: protected function randomlyCapitalize()
      {
          $chars = str_split($this->password);
          $letter_positions = Array();
          foreach ($chars as $key => $char) {
              if (!is_numeric($char)) {
                  $letter_positions[] = $key;
              }
          }
  
  
          $random_letter = $letter_positions[array_rand($letter_positions)];
  
          $chars[$random_letter] = ucwords($chars[$random_letter]);
  
          $this->password = implode('', $chars);
      }
code_tokens: protected function randomlyCapitalize ( ) { $ chars = str_split ( $ this -> password ) ; $ letter_positions = Array ( ) ; foreach ( $ chars as $ key => $ char ) { if ( ! is_numeric ( $ char ) ) { $ letter_positions [ ] = $ key ; } } $ random_letter = $ letter_positions [ array_rand ( $ letter_positions ) ] ; $ chars [ $ random_letter ] = ucwords ( $ chars [ $ random_letter ] ) ; $ this -> password = implode ( '' , $ chars ) ; }
docstring: Randomly capitalize one of the letters in the password
docstring_tokens: Randomly capitalize one of the letters in the password