Generates a random integer between min and max.
min
max
int randomInt(int min, int max) { assert(min < max, 'The max value must be great than the min value.'); return (_rnd.nextInt(max - min) + min).floor(); }