Working planet with gravity and randomly distributed particles