This video explains the trajectories generated by the Brownian simulation code to calculate the diffusion constant using three different approaches.