generate random numbers [ 765 views ]
Goal: we need this 🙂
We need to know about this. How we can generate a random number between minimum and a maximum value.
int min = 0; int max = 120; Random r = new Random(); int ret = r.nextInt(max - min + 1) + min;