I'm looking to find all the possible ways of rolling 5 six-sided dice. I know in python you can do this using itertools, is there something in c# that can achieve the same?
for i in itertools.combinations_with_replacement(range(1, 6), 5)
The range 1, 6 is number of face on the dice and , 5 is the number of dice being rolled. Want to produce all 7776 ways you can roll the dice. e.g. an initial roll may look like:
Dice 1, Dice 2, Dice 3, Dice 4, Dice 5 = 1,2,3,4,5