You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Tests now check whether multiple rolls supply different results
- RollDie is checked for returning all values in the expected range
- Increased for loop from 100 times to 1000 times to prevent false negative. Encountered that 100 rolls was not sufficient to have all numbers in range(1, 18) to be generated.
Rationale:
My first implementation (thanks XKCD) made the test suite pass.
```
public int RollDie()
{
return 4; // chosen by fair dice roll.
// guaranteed to be random.
}
```
0 commit comments