Skip to content

Commit

Permalink
Complete docstring in Model.reset_rng (#2375)
Browse files Browse the repository at this point in the history
  • Loading branch information
quaquel authored Oct 16, 2024
1 parent ffe565b commit 53ce294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesa/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def reset_rng(self, rng: RNGLike | SeedLike | None = None) -> None:
"""Reset the model random number generator.
Args:
seed: A new seed for the RNG; if None, reset using the current seed
rng: A new seed for the RNG; if None, reset using the current seed
"""
self.rng = np.random.default_rng(rng)
self._rng = self.rng.bit_generator.state
Expand Down

0 comments on commit 53ce294

Please sign in to comment.