math docs
    Preparing search index...

    Function bool

    • Returns a random boolean.

      Parameters

      • random: RandomGenerator

        the random generator to use

      • chance: number = 0.5

        the probability of returning true, in the range [0, 1]. Defaults to 0.5.

      Returns boolean