title: Java random array of numbers
body: <p>I am trying to make an array of random numbers that range from 0-9 with the variable for this one being kickerNumbers.  I get a compile error though saying incompatible types.  I have tried changing the <code>(int)</code> to <code>[int]</code> like it said but I didn't think that would be right anyway and surly enough it wasn't.  Is there another way to write this?  I need it to act as the first four numbers of this to be 0-9 but the fifth number would need to be something smaller such as 0-4.  for the 0-4 one I just made that a completely different variable.  Was that a good choice? Here is the sample code for the lines that give the error.  </p>
  
  <pre><code>import java.util.Scanner;
  import java.util.InputMismatchException;
  public class CashBallTest
  {
      public static void main(String[]args)
      {
          Scanner keyboard = new Scanner(System.in);
          int kicker;
          int[] kickerNumbers = (int)(Math.random()*0+9);
          int kickerPowerball=(int)(Math.random()*0+4);
  </code></pre>
  
  <p>The error reads:</p>
  
  <pre><code>\CashBallTest.java:9: incompatible types
      found   : int
      required: int[]
      int[] kickerNumbers = (int)(Math.random()*0+9);
  </code></pre>
  
  <p>I have also tried changing <code>(int)</code> to <code>(int[])</code> but then it said it was an inconvertible type counting as a double when it needs to be an <code>int[]</code> but I don't see where it gets the double type from.</p>