Remove random atoms and put them in the netatoms array.