Random Code written based on xkcd