srand(time()); $random_letter_lcase = chr(rand(ord("a"), ord("z"))); $random_letter_ucase = chr(rand(ord("A"), ord("Z"))); echo ("your letter is $random_letter_lcase"); echo (""); echo ("your letter is $random_letter_ucase"); ?>