BuildcordDocs

Chance

Branch at random, by a percentage.

logic.random takes the Hit way out a set percentage of the time.

Settings

SettingWhat it does
Chance of a hit (%)The odds of a hit. The default is 50.

Ways out

Hit and Miss.

Notes

  • Each run rolls independently. Ten runs at 50% won't always give five hits.
  • The canvas shows 50% chance.
  • To pick one of several lines instead, use Random reply.

Example

At 5%, give a rare bonus from a /daily command.

On this page