Use python to create a random number generator and link that to the outputs of an 8 ball. Attach it to an ESP32 with a battery and a screen.. shake it to wake it up, screen says to ask a question.... then give it another shake for it to tell your fortune.