这就是我想到的:
int value; private int count = 1; Random rand; }
Random randomGenerator = new Random(); int randomInt = randomGenerator.nextInt(100); log("Generated : " + randomInt);