Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. dx = np.random.randn(100)
  2. dy = np.random.randn(100)
  3. x = np.cumsum(dx)
  4. y = np.cumsum(dy)
  5.  
  6. x = np.zeros(100)
  7. y = np.zeros(100)
  8. for i in range(1, 100):
  9. x[i] = x[i-1] + np.random.randn()
  10. y[i] = y[i-1] + np.random.randn()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement