Combinatorics – Counting dice combinations using JavaScript
medium.com