Ad
  • Default User Avatar

    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%]