This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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.