diff --git a/mesa/examples/advanced/wolf_sheep/model.py b/mesa/examples/advanced/wolf_sheep/model.py index bffc891667c..f80fc19a8b6 100644 --- a/mesa/examples/advanced/wolf_sheep/model.py +++ b/mesa/examples/advanced/wolf_sheep/model.py @@ -99,8 +99,8 @@ def __init__( cliff_arr = [[False] * self.width for i in range(self.height)] cliff_coord = { - (random.randrange(self.height), random.randrange(self.width)) - for i in range((width * height) // 3) + (random.randrange(self.height), random.randrange(self.width)) + for i in range((width * height) // 3) } # set is used because the random number gen might return the same coordinate for i, j in cliff_coord: cliff_arr[i][j] = True