Function pathfinder::coordinate::gen_within_radius
source · pub fn gen_within_radius(coord: Coordinate, radius: u32) -> Coordinate
Expand description
Generate a Coordinate from a given Coordinate and randomly places it within a radius.
Examples
use pathfinder::{coordinate::*, Coordinate};
let c1 = Coordinate::new(0, 0);
let c2 = gen_within_radius(c1, 100);