pub fn generate() -> Self {
    let mass = random_range(125.0, 300.0);
    let x = random_range(-500.0, 500.0);
    let y = random_range(-500.0, 500.0);

    Self { mass, x, y }
  }
// Simple generator with some usable defaults
Simple generator with some usable defaults
Simple generator with some usable defaults
pub fn generate() -> Self {
    let mass = random_range(125.0, 300.0);
    let x = random_range(-500.0, 500.0);
    let y = random_range(-500.0, 500.0);
    Self { mass, x, y }
  }
pub fn generate ( ) -> Self { let mass = random_range ( 125.0 , 300.0 ) ; let x = random_range ( - 500.0 , 500.0 ) ; let y = random_range ( - 500.0 , 500.0 ) ; Self { mass , x , y } }
Simple generator with some usable defaults
Simple generator with some usable defaults