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.
Generate a random integer in RunMacro
The Random Integer command generates a random whole number within your range (min to max) and places it in the clipboard.
Prerequisites#
- Add Random Integer to the macro.
- Prepare the data or target that Random Integer will use.
Supported modes#
- RunMacro Runner
What it does#
The Random Integer command generates a random whole number within your range (min to max) and places it in the clipboard.
Screenshots & video#

When to use it#
- Fill a random quantity/age/number into a form.
- Create a numeric value that changes each run.
- Pick randomly by index.
When not to use it#
- Do not use it for reproducible, unique, or cryptographic values.
Configuration steps#
- Add a Random › Random Integer command.
- Enter the min and max values.
- Save. The result is in the clipboard; use Paste from Clipboard to fill it.
Every option explained#
Expected result#
After execution, Random Integer completes the described action and makes its result available to the next step.
Real example#
Example: a random number 1–100#
- Random Integer, min=1, max=100.
- Click the target field.
- Paste from Clipboard.
Limitations and failure cases#
- Bounds and output are not guaranteed unique; the result uses the configured clipboard/variable path.
Tips & common mistakes#
To type the random number directly (with leading zeros), use Type Random Number.
Verification details#
commands/random_cmd.py
