Can someone tell me, i'm trying to make the program choose a random number between 0 and 99 and the only way i know to call a random number is Math.random(); and that is for doubles between 0.0 and 1.0, so i'm not sure what to do. Help please?
david john, please use real words when posting to the forums. Abbreviations such as "U" in place of "you" only serve to make your posts more difficult to read and less likely to generate useful responses.
okay, so now i'm having another problem, i want the program to loop back to beginning if it doesn't guess the correct number. which would use a while statement right? i don't know what to put in the parenthesis for the while statement though..This is what i have:
Let's say you know how to get random numbers between 0 and 100. What mathematical transformation could you apply to give you random numbers between 50 and 150? (Hint: you learned to do it when you were 5).