+ 1
How does Math.min, Math. max and Math. random work
2 Respuestas
+ 11
https://www.sololearn.com/learn/Java/2219/?ref=app
Also check the comments👇
+ 2
You can use these like...
int min = Math.min(7,5); // 5
int max = Math.max(7,5); // 7
For random class..
Random rand = new Random();
int r = rand.nextInt();