Dice roll probabilities questions & testing
Vlek opened this issue · 0 comments
Vlek commented
Right now the probabilities haven't been properly considered. Do we have equal chance of getting all numbers in a 1d20 roll? If random.randint is not cryptographically secure, does that mean that will affect our probabilities enough to be worthwhile to switch to something that is? One of the issues is that cryptographically secure pseudorandom number generators would either require using the operating system's one, something that is not guaranteed on emulated systems like Termux for android. Maybe have the os version and then fall back to the random module if it's not available?