Computes a random integer value within a given min/max range.
static int randInt(int min, int max ) { return min + ( math.Random().nextDouble() * ( max - min + 1 ) ).floor(); }