The RandomBerryPi Project

RandomBerryPi

My Raspberry Pi likes to pick (pseudo)random things, so I’ve built a couple of programs that allow it to do just that. I setup the Twitter account @RandomBerryPi so that it can share everything it does with the world. I have created two programs so far that run on my Raspberry Pi and tweet various random things. You can find the code and additional details about how they were constructed and deployed on my GitHub page here: https://github.com/danksalot/RandomBerryPi

Random Tweet

RandomTweet.py is a program that is posting to Twitter as @RandomBerryPi. It uses Python to choose a random number, perform a virtual coin flip, and choose when it will post next. Like this:

The range for the random number is 10,000,000 – 99,999,999. The coin flip can be heads or tails. The next update can be anywhere from one minute to 23 hours and 59 minutes.

The program posts these to Twitter then waits the decided amount of time before running again.

Random Powerball

RandomPowerball.py is a program that is posting to Twitter as @RandomBerryPi. It uses Python to choose random lottery numbers for the Powerball lottery. It then checks if the last numbers it picked were winners or not and posts to Twitter. Like this: