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

- Create the target Labels (e.g.
path_a,path_b). - Add a Flow › Random Goto command.
- Choose the list of labels it may jump to. Save.
Options reference
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
- Create Labels
a,b,cfor 3 branches. - Random Goto picks among [a, b, c].
- 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
