Returns a random integer in the range 0 <= value < max.
0 <= value < max
int randomInt(int max, [int? seed]) => Random(seed).nextInt(max);