Randomly determines whether a bug should be injected, based on a percentage threshold.

  • Parameters

    • bugThreshold: number

      The probability threshold (0–100) for introducing a bug.

    Returns boolean

    true if a bug should be injected; otherwise, false.