[−][src]Function popdat::distribute_population_to_homes
pub fn distribute_population_to_homes(
polygon: Polygon<f64>,
population: usize,
map: &Map,
rng: &mut XorShiftRng
) -> Vec<(BuildingID, usize)>
Starting from some number of total people living in a polygonal area, randomly distribute them to residential buildings within that area. Returns a list of homes with the number of residents in each.