Become a premier member today to gain access to exclusive member benefits! Just $5.00 to join FOR LIFE!
Given an input file of 3000 random dice throws, (here: dice.txt) calculate how many doubles were rolled.
It is known for this problem that each die are fair in that they are labeled with the numbers 1,2,3,4,5 and 6. It is also known that a double is defined as both dice showing the same number after they are rolled.
**Register or login to submit the answer & earn 25 rewards points!(or 50 if you're a premium member)!**