3 of 3 replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/

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!