title: Generating user specified amount of random vowels/consonsants java
body: <p>I am trying to make a program that will choose a random assortment of 9 letters where the user specifies how many each of consonants and vowels to select.</p>
  
  <p>So far I have:</p>
  
  <pre><code>char consonants [] = {'b','c','d','f','g','h','j','k','l','m','n','p','q','r','s','t','v','w','x','y','z'};
  char vowels [] = {'a','e','i','o','u'};
  String word = "";
  int howManyVowels, howManyConsonants;
  
  public void generateLetters(){
      for(int i = 0; i &lt; howManyVowels; i++){
          word.append(vowels[Math.random(howManyVowels)*5]+1);
      }
      for(int j = 0; j &lt; howManyConsonants; j++){
          word.append(consonants[Math.random(howManyConconants)*21]+1);
      }
  }
  </code></pre>
  
  <p>The first error I get is: "error: method random in class Math cannot be applied to given types".</p>
  
  <p>Could someone tell me where I am going wrong?</p>