Generates a non-negative random floating point value uniformly distributed in the range from 0.0, inclusive, to 1.0, exclusive.
double randomDouble({double? max}) => Random().nextDouble() * (max ?? 1);