Java Random() | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Java Random()

Can someone explain to me how to change the values of which the random is between. Like say I wanted to get only whole numbers between 0-34 or 5-29 using Math.random(); Thanks!

11th Aug 2018, 3:36 PM
Nick Johnson
Nick Johnson - avatar
1 Answer