Skip to content

Commit 7fea878

Browse files
committed
fix termites rng
1 parent c279305 commit 7fea878

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/termites/termites/model.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import numpy as np
21
from mesa import Model
32
from mesa.experimental.cell_space import OrthogonalMooreGrid, PropertyLayer
43

@@ -33,7 +32,7 @@ def __init__(
3332
)
3433

3534
# Randomly distribute wood chips, by directly modifying the layer's underlying ndarray
36-
self.wood_chips_layer.data = np.random.choice(
35+
self.wood_chips_layer.data = self.random.choice(
3736
[True, False],
3837
size=(width, height),
3938
p=[self.wood_chip_density, 1 - self.wood_chip_density],

0 commit comments

Comments
 (0)