Skip to content

Instantly share code, notes, and snippets.

@bgbg
Created October 9, 2018 11:57
Show Gist options
  • Save bgbg/be27992f5370e79e96d31c00a5f18adf to your computer and use it in GitHub Desktop.
Save bgbg/be27992f5370e79e96d31c00a5f18adf to your computer and use it in GitHub Desktop.
np.random.seed(123456)
N = 100
aim = 0
scale = 0.5
adjusted = []
for i in range(N):
curr = np.random.randn() * scale + aim
adjusted.append(curr)
aim = -curr
non_adjusted = np.random.randn(N)*scale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment