pmd-sky/include/dungeon_random.h
2023-09-06 23:37:34 -04:00

15 lines
704 B
C

#ifndef PMDSKY_DUNGEON_RANDOM_H
#define PMDSKY_DUNGEON_RANDOM_H
// Returns the result of a possibly biased coin flip (a Bernoulli random variable) with some success probability p, using the dungeon PRNG.
// percentChance: success percentage (100*p)
// return: true with probability p, false with probability (1-p)
u8 DungeonRandOutcome__022EAB20(s32 percentChance);
// Returns the result of a possibly biased coin flip (a Bernoulli random variable) with some success probability p, using the dungeon PRNG.
// percentChance: success percentage (100*p)
// return: true with probability p, false with probability (1-p)
u8 DungeonRandOutcome__022EAB50(s32 percentChance);
#endif //PMDSKY_DUNGEON_RANDOM_H