Skip to content

Instantly share code, notes, and snippets.

@bgbg
Created October 9, 2018 11:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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