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 Random Random Integer
🔢 Random

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#

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

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#

  1. Add a Random › Random Integer command.
  2. Enter the min and max values.
  3. Save. The result is in the clipboard; use Paste from Clipboard to fill it.

Every option explained#

Min value#

Lower bound of the random range (inclusive).

Max value#

Upper bound of the random range (inclusive).

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#

  1. Random Integer, min=1, max=100.
  2. Click the target field.
  3. 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
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.