randomBool static method

bool randomBool()

生成一个随机布尔值

Implementation

static bool randomBool() {
  return getRandom().nextBool();
}