fn random_coords(width: f32, height: f32, padding: f32) -> (f32, f32) {
    let mut rng = rand::thread_rng();
    let random_width = rng.gen_range(0.0 + padding..width - padding) - width / 2.0;
    let random_height = rng.gen_range(0.0 + padding..height - padding) - height / 2.0;
    (random_width, random_height)
}
/// generate random coords between height and width
/// note: assumes that (0, 0) is in the center

generate random coords between height and width
note: assumes that (0, 0) is in the center
generate random coords between height and width note : assumes that ( 0 0 ) is in the center
fn random_coords(width: f32, height: f32, padding: f32) -> (f32, f32) {
    let mut rng = rand::thread_rng();
    let random_width = rng.gen_range(0.0 + padding..width - padding) - width / 2.0;
    let random_height = rng.gen_range(0.0 + padding..height - padding) - height / 2.0;
    (random_width, random_height)
}
fn random_coords ( width : f32 , height : f32 , padding : f32 ) -> ( f32 , f32 ) { let mut rng = rand :: thread_rng ( ) ; let random_width = rng . gen_range ( 0.0 + padding .. width - padding ) - width / 2.0 ; let random_height = rng . gen_range ( 0.0 + padding .. height - padding ) - height / 2.0 ; ( random_width , random_height ) }
generate random coords between height and width
note: assumes that (0, 0) is in the center
generate random coords between height and width note : assumes that ( 0 0 ) is in the center
width
f32
height
f32
padding
f32