parameters: (self)
docstring: Remove a random particle
docstring_summary: Remove a random particle
docstring_tokens: Remove a random particle
function: def remove_particle(self):
          """ Remove a random particle """
          random_particle_id = np.random.choice(self.system.part.all().id)
          self.old_particle = self.system.part.by_id(
              random_particle_id).to_dict()
          self.system.part.by_id(self.old_particle["id"]).remove()
          self.send_energy()
function_tokens: def remove_particle ( self ) : random_particle_id = np . random . choice ( self . system . part . all ( ) . id ) self . old_particle = self . system . part . by_id ( random_particle_id ) . to_dict ( ) self . system . part . by_id ( self . old_particle [ "id" ] ) . remove ( ) self . send_energy ( )