however, since I was using the the $asc() value of the letters, I had to take into account the edge number problem, which is why I did it the way I did.
You're right of course. Even though I did see $asc() in your code, I accidentally thought you were using $rand(letter1,letter2) (it's amazing how stupid mistakes I can make sometimes, isn't it).