sinergym.utils.controllers.RandomController

class sinergym.utils.controllers.RandomController(env: Env)
__init__(env: Env)

Random agent. It selects available actions randomly.

Parameters:

env (Env) – Simulation environment.

Methods

__init__(env)

Random agent.

act()

Selects a random action from the environment's action_space.

act() Sequence[Any]

Selects a random action from the environment’s action_space.

Returns:

Action chosen.

Return type:

Sequence[Any]