title: math.random, only generating a 0?
body: <p>The following code is only producing a 0 ;-;</p>
  
  <p>What am I doing wrong? </p>
  
  <pre><code>public class RockPaperSci {
  
    public static void main(String[] args) {
      //Rock 1
      //Paper 2
      //Scissors 3
      int croll =1+(int)Math.random()*3-1;
      System.out.println(croll);
    }
  }
  </code></pre>
  
  <p>Edit, Another Poster suggested something that fixed it.
  int croll = 1 + (int) (Math.random() * 4 - 1);</p>
  
  <p>Thanks, everyone!</p>