original_string: public function getRandomId($name)
      {
          if (strpos($name, "[]") !== false) {
              $strReturn = str_replace("[]", "_" . rand(100000, 900000), $name);
          } else {
              $strReturn = $name . "_" . rand(100000, 900000);
          }
  
          return $strReturn;
      }
code: public function getRandomId($name)
      {
          if (strpos($name, "[]") !== false) {
              $strReturn = str_replace("[]", "_" . rand(100000, 900000), $name);
          } else {
              $strReturn = $name . "_" . rand(100000, 900000);
          }
  
          return $strReturn;
      }
code_tokens: public function getRandomId ( $ name ) { if ( strpos ( $ name , "[]" ) !== false ) { $ strReturn = str_replace ( "[]" , "_" . rand ( 100000 , 900000 ) , $ name ) ; } else { $ strReturn = $ name . "_" . rand ( 100000 , 900000 ) ; } return $ strReturn ; }
docstring: Generate a random ID for a given field name to prevent having two fields with the same name
  @param string $name Field name
  @return string
docstring_tokens: Generate a random ID for a given field name to prevent having two fields with the same name