Connection between Brownian motion and quantum mechanics