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