floxs.predator_prey.generator.RandomGenerator

class floxs.predator_prey.generator.RandomGenerator(num_predators: int, num_prey: int, env_size: float = 1.0)

Bases: Generator

State generator abstract class

Parameters:
  • num_predators – Number of predator agents

  • num_prey – Number of prey agents

  • env_size – Environment size, default 1.0