2 of 3 added 56 characters in body

CJam, 25 24 bytes

6Zm*{$e`z}$q~:(a#6bW2t1b

This is a port of my Jelly answer.

Try it online! or simulate all 216 outcomes.

Thanks to @jimmy23013 for golfing off 1 byte!