We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c279305 commit 7fea878Copy full SHA for 7fea878
examples/termites/termites/model.py
@@ -1,4 +1,3 @@
1
-import numpy as np
2
from mesa import Model
3
from mesa.experimental.cell_space import OrthogonalMooreGrid, PropertyLayer
4
@@ -33,7 +32,7 @@ def __init__(
33
32
)
34
35
# Randomly distribute wood chips, by directly modifying the layer's underlying ndarray
36
- self.wood_chips_layer.data = np.random.choice(
+ self.wood_chips_layer.data = self.random.choice(
37
[True, False],
38
size=(width, height),
39
p=[self.wood_chip_density, 1 - self.wood_chip_density],
0 commit comments