Docs

RunMacro Documentation

Create your first robot, then go further as needed.

Clear step-by-step guides to create, run, and improve robots for repetitive computer work.

Docs Flow Random Goto
🎯 Flow

Random Goto: jump to a random label in RunMacro

The Random Goto command randomly picks one Label from a list (up to 10) and jumps there.

Prerequisites#

  • Add Random Goto to the macro.
  • Prepare the data or target that Random Goto will use.

Supported modes#

  • RunMacro Runner

What it does#

The Random Goto command randomly picks one Label from a list (up to 10) and jumps there. Each run can take a different path, making behavior more natural-timing.

Screenshots & video#

RunMacro Random Goto command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Random Goto command in RunMacro.

When to use it#

  • Vary behavior to avoid a rigid, repeated pattern.
  • Randomly pick one of several sub-scripts.
  • Simulate a user making a random choice.

When not to use it#

  • Do not use it when execution must be reproducible or branching should depend on a data condition.

Configuration steps#

  1. Create the target Labels (e.g. path_a, path_b).
  2. Add a Flow › Random Goto command.
  3. Choose the list of labels it may jump to. Save.

Every option explained#

Label list (up to 10)#

The candidate Labels. On run, the command randomly picks exactly one from the list to jump to.

Expected result#

After execution, Random Goto completes the described action and makes its result available to the next step.

Real example#

Example: randomly choose 1 of 3 actions#

  1. Create Labels a, b, c for 3 branches.
  2. Random Goto picks among [a, b, c].
  3. Each run follows a random branch.

Limitations and failure cases#

  • Label selection is nondeterministic, can repeat, and does not produce reproducible runs.

Tips & common mistakes#

Combine with a Random Wait for even more natural overall behavior.

Verification details#

  • commands/control_flow.py
RunMacro robot

Robots do the work. Your time is yours.

Create a robot in minutes, no coding needed. Reliable execution, remote management, transparent costs — and you always stay in control.