Add a note on how to seed the action space (#383)

This commit is contained in:
Andrea PIERRÉ
2023-03-13 19:33:37 -04:00
committed by GitHub
parent e2a80e0f3b
commit f33a1d8ec9

View File

@@ -45,6 +45,9 @@ class Env(Generic[ObsType, ActType]):
``super().reset(seed=seed)`` and when assessing ``self.np_random``.
.. 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