my_utilities.probability package¶
Submodules¶
my_utilities.probability.probability_event_occurring module¶
- The module contains a function that returns whether an event has occurred
that has a probability of occurrence
- my_utilities.probability.probability_event_occurring.is_fate_in_awe(drop_chance)[source]¶
- Method determines whether an event has occurred that
has a certain chance of falling out
- Parameters:
drop_chance (float| int| Decimal) – the probability of an event occurring value between[0, 1]
- Returns:
is got this chance
- Return type:
bool
- Raises:
ValueError – if the value is not in the allowed range [0, 1]
TypeError – if incorrect types