Brownian dynamics simulation of interacting particles