So, I did talk about geomancy before and how many different ways there are to generate the figures, so let's look at the modern one. BBC Micro:bit is a pocket-sized computer that is perfect for getting introduced into hardware programming. You simply buy the little bugger, connect it to your computer, and then go to https://makecode.microbit.org/, there you can go through the tutorials, make your code, and download it to the Micro:bit. There are also a ton of prepared projects for you including automated plant watering, making RC models, etc.
But enough with the unpaid advertisement for the little bugger. You can also use it to generate geomantic figures. Here's what the use case looks like:
https://www.youtube.com/shorts/rfBFMluXdp4
The code for this beauty is available on my blog