I have a boundary ( rectangle or cylinder) and I want to do a Brownian motion path to get to the boundary. The Brownian motion is to be modeled by picking an initial point i