GetAvailableSets() as $set) { echo $set . "
"; } //Your set should be listed. If not, verify that it starts with RS_ //To generate a string $string = $hRS->GenerateString(6, "RS_ALL"); //The first argument is the length, the second is the set to generate from. /* Possible default set choices are - RS_NUMERIC (0-9 inclusive) - RS_LOWERCASE (lowercase alphabet) - RS_UPPERCASE (uppercase alphabet) - RS_ALL (all of above) */ //To generate a 14 digit number $string = $hRS->GenerateString(14, "RS_NUMERIC"); ?>