Sorry, I haven't been able to look at this for more than 12 hours. random(int n) is a function for my compiler. I know it's not standard.
Thanks to everyone. You set me straight in some of my newbish ways. Comment on what Prelude said:
Yah, I was thinking of something like that but I thought it was too complicated for me. However, now all the names seem almost...Japanese or something (because I know Japanese letters usually stand for two English letters)