RPG and strategy fans looking for a fun addition to their table games should check out this clever 3D-printed dice roller. Just drop your dice into the top of this castle and they’ll roll out randomly onto the folding trays on the sides. Buy it on Etsy, or print your own on Thingiverse.
Adafruit shows us how to make an electronic and portable dice roller. It uses a small motor to spin a small platform, which in turn rolls the dice. As others have pointed out, it would be better if you make the platform uneven to shake the dice even more. Full guide here.