Skip to contents

Get a random agent from all agents in the environment

Usage

get_random_agent(abm, me = NULL)

Arguments

abm

the whole environment model (abm)

me

if provided as an agent then the returned (random) agent will not be this one (i.e., me is omitted)

Value

a tidyabm_agent object