I'm working on creating a range of numbers between 1 and 2 using the imported math.random() class.
Here's how I got it working so far, however I can't see how it would work:
int tmp = (int)(Math.random()*1)+1;
Anyonould?e know if that actually works to get the range? if not.. then what
EDIT: Looking for either the number 1 or 2.