@staticmethod<EOL><INDENT>def _generate(num_particles, D, box, rs):<DEDENT>
X0 = rs.rand(num_particles) * (box.x2 - box.x1) + box.x1<EOL>Y0 = rs.rand(num_particles) * (box.y2 - box.y1) + box.y1<EOL>Z0 = rs.rand(num_particles) * (box.z2 - box.z1) + box.z1<EOL>return [Particle(D=D, x0=x0, y0=y0, z0=z0)<EOL>for x0, y0, z0 in zip(X0, Y0, Z0)]<EOL>
Generate a list of `Particle` objects.