A MightyOhm Geiger Counter samples radioactive decay from a martini glass that contains a small amount of uranium. If the number of clicks in a set period is even, the robot dispenses vermouth into the glass. If the count is odd, it dispenses gin, therefore creating a wet or dry martini based on the random process of radioactive decay.
Icarus has written a tutorial on connecting the MightyOhm Geiger Counter to an ESP8266 module and OLED display. His code (written in LUA for NodeMcu) is available on github. He is using the Wemos D1 mini board.