Skip to main content
Commonmark migration
Source Link

#Monkeys On A Typewriter

Monkeys On A Typewriter

import random

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

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

#Monkeys On A Typewriter

import random

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

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

Monkeys On A Typewriter

import random

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

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

deleted 26 characters in body
Source Link
Mayube
  • 11.7k
  • 2
  • 48
  • 93

#Monkeys On A Typewriter

import random
from sys import argv

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

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

#Monkeys On A Typewriter

import random
from sys import argv

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

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

#Monkeys On A Typewriter

import random

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

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

added 5 characters in body
Source Link
Mayube
  • 11.7k
  • 2
  • 48
  • 93

#Monkeys On A Typewriter

import random
from sys import argv

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

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

#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

#Monkeys On A Typewriter

import random
from sys import argv

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

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

Source Link
Mayube
  • 11.7k
  • 2
  • 48
  • 93
Loading