Skip to content

Instantly share code, notes, and snippets.

@nathanmerrill
Created January 2, 2016 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanmerrill/a10a917f2f8d64a39c49 to your computer and use it in GitHub Desktop.
Save nathanmerrill/a10a917f2f8d64a39c49 to your computer and use it in GitHub Desktop.
import random
total_test_cases = 10**2
current = 0
previous = -1
test_cases = [""]*total_test_cases
for i in range(total_test_cases):
current += random.randint(0, current//2)
if current == previous:
current += 1
previous = current
test_cases[i] = str(current)
print(",".join(test_cases))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment