I have the following function to generate a brownian motion:
from matplotlib import pyplot as plt from matplotlib import an