'Simulate loaded dado for the number you choose

how to simulate loaded dado for the number you choose (1, 2,3,4, 5 or 6)? For example, when you insert 1 and of the 10 releases, 1 is the one with the highest appearance or probability.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source