Generate Random Value (Behaviour)

Generate Random Value (Behaviour)

Generates a random value using an input value and a max distance.

Success: When a random value is generated

Failure: When the center and distance metadata types don't match

Running: Never


Attributes

Attributes

Type

Description

Attributes

Type

Description

lockAgent

bool

If on, ensures no data on the agent is written simultaneously by nodes that have this option active.

center

double

Center value

distance

double

Distance value

useAbsoluteDistance

bool

If on, a number between (center, center + distance) is generated. If off, a number between (center - distance, center + distance) is generated

seed

int

The random generator seed

useAnimatedSeed

bool

If on, the simulation tick is used to offset the random generator seed

useAgentIdAsSeed

bool

If on, Use the agent group is used to offset the random generator seed

blackboardKey

string

The blackboard key where the random value will be stored

Copyright © 2017, Toolchefs LTD.