Implemented Random spawning based on population density