particle generation with boundaries
making sure random particles stay away from boundaries