with round we dont have equal chance for all possible numbers. first and last have half others chance to appear. A test running this function 4000 times for dice(0,3). counting appearance of each number, shows: [17% ,34% ,33% ,16%]
Loading collection data...
with round we dont have equal chance for all possible numbers. first and last have half others chance to appear.
A test running this function 4000 times for dice(0,3). counting appearance of each number, shows:
[17% ,34% ,33% ,16%]