Open bbrk24 opened 2 years ago
Actually, I think I can get a PR out for this.
I know there's a PR for this, but just want to add that ChuckSomeDice
is basically a fancy alias for rand() which only takes integers anyway (specifically, the datatype is an i64) so you'd expect 0.5 to truncate to just 0, per integer truncating.
The bug, of course, is that ChuckSomeDice(0,0)
should display the proper error message, which is what ^this PR will fix, and you do reference this in the PR itself.
Apparently
ChuckSomeDice
really doesn't like non-integers, as this code:outputs the following error: