I've been trying to solve this error for a few days now. I know i'm probably missing something simple. So i've made a function called numberOfX's
which takes 3 arguments and now takes a fourth argument, x and determines the number of dice rolls that equal the argument x.
I've extended the function to print out the number of 1s, 2s, .., 6s.
My problem lies in the print out the number of ...'s. specifically the number of 1's. this is what my compiler returns to me:
-----NUMBER OF---------
1's is: -1081144248
2's is: 0
3's is: 1
4's is: 0
5's is: 1
6's is: 1
[a1655620@ingb24w032]$
for some reason everything being returned is correct bar the "number of 1's".
any help or direction would be appreciated. here is my function: