'Negative x and y range
My problem is that the generated_map is not utilizing full negative range for x and y
def generate_map(x_range, y_range, locations):
generated_map = []
for x in range(locations):
generated_map.append([random.randint(x_range, y_range), random.randint(x_range, y_range)])
return generated_map
generated_map = generate_map(-300,300,35)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
