DocsFlowRandom Goto

Random Goto: jump to a random label in RunMacro

RunMacro RunnerRunMacro 3.5+

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

Dialog & quick setup

RunMacro Random Goto command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Random Goto command in RunMacro.
  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.

Options reference

Label list (up to 10)

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

Modes & when to use

RunMacro Runner

Best for

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

Use an alternative when

  • Do not use it when execution must be reproducible or branching should depend on a data condition.
Before you run
  • Add Random Goto to the macro.
  • Prepare the data or target that Random Goto will use.

Example workflow

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.
Expected result: After execution, Random Goto completes the described action and makes its result available to the next step.

Tips & limitations

Combine with a Random Wait for even more natural overall behavior.
  • Label selection is nondeterministic, can repeat, and does not produce reproducible runs.

Applies to RunMacro 3.5+ · RunMacro Runner · Windows 10/11

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.