Skip to content

Instantly share code, notes, and snippets.

@PJensen
Created March 9, 2012 19:31
Show Gist options
  • Select an option

  • Save PJensen/2008241 to your computer and use it in GitHub Desktop.

Select an option

Save PJensen/2008241 to your computer and use it in GitHub Desktop.
Explores the 99w rollover period and it's effect on charts.
import time,random
ROLLOVER_WKS = 99
YEARS = 5
employmentData = []
for i in range(0,YEARS*52):
employmentData.append(random.randint(-100,100))
if (i > ROLLOVER_WKS):
if (employmentData[-99] <= 0):
employmentData[-99] = 0
print sum(employmentData[0:i])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment