percent method

bool percent(
  1. int chance
)

Returns true chance percent of the time.

Implementation

bool percent(int chance) => range(100) < chance;