Generating usernames

I am looking for a script that generates random passwords that we put in a certain php or xml file. I’ve found scripts that give u a random password but there is no way to put in information to be randomly selected. If someone can point me in the right direction i would greatly appreciate it…