What’s better than a magic 8 ball? A magic 20 icosahedron. Adafruit and Phillip Burgess made a guide that shows us how to make a D20 that talks about the resulting roll.
The die’s accelerometer helps it figure out which face is up. It will then play a sound depending on the result.
Ironically, the die might not be suited for tabletop gaming. The 3D printed shell is probably uneven and the electronics inside could make it unbalanced, so its rolls might not be truly random. But you can still have fun with it since you can load any sound you want to its soundboard. Head to Adafruit for the full guide.