pub fn gen_radius(coord: Coordinate, min: u32, max: u32) -> Coordinate
Expand description

Generate a Coordinate from a given Coordinate and randomly places it within a min and max radius.

Examples

use pathfinder::{coordinate::*, Coordinate};
let c1 = Coordinate::new(0, 0);
let c2 = gen_radius(c1, 50, 100);