I'm trying to show the possible combinations of rolling 3 dice and taking the sum of the two highest numbers
dice = {1, 2, 3, 4, 5, 6}
j = Flatten[Outer[List, dice, dice, dice], 2]
j1 = Table[Extract[j, {i, 2}], {i, 1, 216}];
j2 = Table[Extract[j, {i, 3}], {i, 1, 216}];
Transpose[{j1, j2}];
How can I add the two elements up of each part of the last line (Transpose...) to give the sums ranging from 2 to 12? Thank you
Tuples[]
?Total[Rest[#]] & /@ Tuples[Range[6], 3]
$\endgroup$Total[#] & /@ Transpose[{j1, j2}]
$\endgroup$Total /@ Transpose[{j1, j2}]
$\endgroup$