How would you accomplish this same thing using the static method Math.random() ?
Using the method “Math.random()”, the statement could be rewritten as:int winner = (int)(50 * Math.random()) + 1;−Phoenix
200 XPs awarded for this completion.
How would you accomplish this same thing using the static method Math.random() ?
ReplyDeleteUsing the method “Math.random()”, the statement could be rewritten as:
ReplyDeleteint winner = (int)(50 * Math.random()) + 1;
−Phoenix
200 XPs awarded for this completion.
ReplyDelete