CrudeDiatribe
Member
For some reason my program keeps rolling the die over and over without stopping and I'm not exactly sure why.
It doesn't, but the fact that you think it does and copy/pasted the throwCalc() function suggests a misunderstanding of what's going on.
Code:
getCalc1 = throwCalc1();
Runs throwCalc1() and puts the resulting integer into getCalc1. That's it. It doesn't put a reference to the function into getCalc1, it just puts a number.
So, you don't need two throwCalc functions, you just need one, and you need to call it in the right places.