Generates a non-negative random integer uniformly distributed in the range from min, inclusive, to max, exclusive.
min
max
IO<int> randomInt(int min, int max) => IO(() => Random().nextInt(max - min) + min);