random bool

Generate a random boolean value

Signature

> random bool --bias

Parameters

  • --bias {number}: Adjusts the probability of a "true" outcome

Examples

Generate a random boolean value

> random bool

Generate a random boolean value with a 75% chance of "true"

> random bool --bias 0.75