Simulation of the Brownian motion