Construct a Random object at application startup: Random random = new Random();. Then use Random.nextInt(int): int randomNumber = random.
確定! 回上一頁