Your preference will be saved for 90 days, or until you clear your browser cookies.
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.