Get a random number from min to max.
min
max
int rangeInt(int min, int max) => ((nextDouble() * (max - min)) + min).toInt().limit(min, max);