in reply to Cookie user ID queston

Try Data::Random - the function rand_chars() is just for you I gues.