+ 1

How does Math.min, Math. max and Math. random work

3rd Mar 2018, 1:22 PM
Kodak
2 Respostas
3rd Mar 2018, 2:13 PM
Hannah Grace
Hannah Grace - avatar
+ 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();
3rd Mar 2018, 6:03 PM
Aaron Stone
Aaron Stone - avatar