FakeCoins - because Bitcoins are just too real


SUBMITTED BY: Guest

DATE: April 15, 2013, 7:52 p.m.

FORMAT: Python

SIZE: 490 Bytes

HITS: 1220

  1. import random, os
  2. fakecoins = 0
  3. difficulty = 0
  4. block = random.randint(difficulty, 256*difficulty)
  5. while True:
  6. number = random.randint(0, 256*difficulty)
  7. if number == block:
  8. os.system('cls') # Windows
  9. #os.system('clear') #Linux
  10. fakecoins += 1
  11. difficulty += 1
  12. print 'Fake Coins:', fakecoins
  13. print 'Difficuly :', difficulty
  14. block = random.randint(difficulty, 256*difficulty)

comments powered by Disqus