basically i have a function that generates random alphabets .i have done this using the rand() function to generate numbers and them converted them to their corresponding ascii equivalents. but i want the vowels to be generated in higher numbers as compared to other alphabets.i.e if have generated say 10 alphabets then there should be like 2 o's,3 a's etc. how do i do this??in vc++6.0.
Edit: actually i am making scrabble as my college project in vc++6.0. so under my board i have 7 buttons on which i am displaying a random letter on each.so what i want is that ..like in scrabble we have:
1 point: E ×12, A ×9, I ×9, O ×8, N ×6, R ×6, T ×6, L ×4, S ×4, U ×4
2 points: D ×4, G ×3
3 points: B ×2, C ×2, M ×2, P ×2
4 points: F ×2, H ×2, V ×2, W ×2, Y ×2
5 points: K ×1
8 points: J ×1, X ×1
10 points: Q ×1, Z ×1
so just like you would pick 7 random letters from the above described set, i want the 7 letters to be generatd in the same way.