Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import hashlib
- m = hashlib.md5()
- m.update(raw_input("Enter your Flight here \n"))
- s = int(m.hexdigest(), 16) % 1000000
- print "Your Freecell game this flight is #%i" % s
- quit = raw_input("Press any key to quit.")
- """
- This is designed for the FreeCell program that comes in Windows, as it has 1,000,000 games total, whereas FreeCell itself has 1.75*10^64 deals. For any other FreeCell software that allows you to pick a game, you can simply replace the modulo value in s with the upper bound of the games it allows you to pick.
- Thanks!
- """
Add Comment
Please, Sign In to add comment