char ch; ch = (char) (65 + (Math.random() * 26)); Well the function above generates pseudo random capital letters. In terms of the non-vowel requirement - beats me. [This message has been edited by Pho Tek (edited February 18, 2001).]
It seems to me you will have to check for the specific numbers that represent those letters. I dont have a table of them but what I would probably do is use a switch statement. Capital A would apparently be 65
not a complete solution but should give you an idea.