SEED implementation

This commit is contained in:
2026-04-03 13:58:41 +02:00
parent b6067b2045
commit 0045def73b
4 changed files with 16 additions and 19 deletions
+1 -1
View File
@@ -369,7 +369,7 @@ class DepthFirstSearch(MazeGenerator):
The final generated maze.
"""
if seed is not None:
np.random.seed(seed)
random.seed(seed)
maze = self.init_maze(width, height)
if width > 10 and height > 10:
self.forty_two = self.get_cell_ft(width, height)