title: Getting random numbers in Java
body: <p>I would like to get a random value between 1 to 50 in Java.</p>
  
  <p>How may I do that with the help of <code>Math.random();</code>?</p>
  
  <p>How do I bound the values that <code>Math.random()</code> returns?</p>