Each bead obeys the overdamped Langevin equation. Over a time step h every coordinate moves by a Gaussian random number with variance 2Dh, which is exact for free diffusion at any step size.
The diffusion coefficient comes from the Stokes-Einstein relation D = kT/(6 pi eta r) with the exact SI value of k. In two dimensions the mean-square displacement grows as 4Dt, and the squared displacement of one bead follows an exponential (Rayleigh) law, so half the beads stay inside 4Dt ln2.
Simplifications: no hydrodynamic memory (the Basset force), no bead-bead or wall interaction, spherical bead in a uniform Newtonian fluid, periodic edges for display only (displacements are tracked unwrapped). Viscosity values are illustrative; water at 20 C is close to 1 mPa s. The Perrin readout is a direct re-derivation of k from the measured MSD.