//Code to add 2 special symbols to the password of the Random Password Generator ?.,_-()'; $symbolscount= strlen($symbols); $randomposition1= mt_rand(0, $symbolscount - 1); $randomposition2= mt_rand(0, $symbolscount - 1); $password= substr($symbols, $randomposition1, 1); $password= substr($symbols, $randomposition2, 1); $password .= chr(mt_rand(48,57)); $password .= chr(mt_rand(65,90)); while (strlen($password) < $passwordlength) { $password .= chr(mt_rand(97,122)); } $password = str_shuffle($password); echo $password; ?>