sinergym.utils.controllers.RandomController
- class sinergym.utils.controllers.RandomController(env)
- __init__(env)
Random agent. It selects available actions randomly.
- Parameters:
env (object) – Simulation environment.
Methods
__init__
(env)Random agent.
act
([observation])Selects a random action from the environment's action_space.
- act(observation=None)
Selects a random action from the environment’s action_space.
- Parameters:
observation (object, optional) – Perceived observation. Defaults to None.
- Returns:
Action chosen.
- Return type:
object