mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-09-08 20:27:33 +00:00
Add a note on how to seed the action space (#383)
This commit is contained in:
@@ -45,6 +45,9 @@ class Env(Generic[ObsType, ActType]):
|
|||||||
``super().reset(seed=seed)`` and when assessing ``self.np_random``.
|
``super().reset(seed=seed)`` and when assessing ``self.np_random``.
|
||||||
|
|
||||||
.. seealso:: For modifying or extending environments use the :py:class:`gymnasium.Wrapper` class
|
.. seealso:: For modifying or extending environments use the :py:class:`gymnasium.Wrapper` class
|
||||||
|
|
||||||
|
Note:
|
||||||
|
To get reproducible sampling of actions, a seed can be set with ``env.action_space.seed(123)``.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Set this in SOME subclasses
|
# Set this in SOME subclasses
|
||||||
|
Reference in New Issue
Block a user