Skip to main content
1 of 4
Mayube
  • 11.7k
  • 2
  • 48
  • 93

#Monkeys On A Typewriter

import random
from sys import argv

print("%s%s" % (['b', 's'][int(random.random() * 2)], int(random.random() * 1000000)))

It's a bunch of monkeys on typewriters. Randomly sells or buys X stocks, where:
0 <= X <= 1,000,000

Run with python3, but should(?) work with python2 as well

Mayube
  • 11.7k
  • 2
  • 48
  • 93