println(Math.abs(rnd.nextInt()) % (100 + 1)); Both sentence create a random number from 0 to 100, but which one is better? Is ...
確定! 回上一頁