Instantly share code, notes, and snippets.

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