This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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.