flipCoinWith static method

bool flipCoinWith(
  1. double prob
)

Implementation

static bool flipCoinWith(double prob) {
  return _rnd.nextDouble() < prob;
}