# CJam, <s>25</s> 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!*

[Try it online!]: http://cjam.tryitonline.net/#code=NlptKnskZWB6fSRxfjooYSM2YlcydDFi&input=WzEgMyA1XQ
[simulate all 216 outcomes]: http://cjam.tryitonline.net/#code=NlptKjokOjopOmAKW3sKICAgIDZabSp7JGVgen0kUX46KGEjNmJXMnQxYgp9ZlFdCiQ2Lzpw&input=
[my Jelly answer]: https://codegolf.stackexchange.com/a/80223