random distribution of particles within a cube