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 Type Random Number
⌨ Random

Type a random number directly in RunMacro

The Type Random Number command generates a random integer in a range and types it directly into the focused field (no clipboard), at a natural-timing speed.

Prerequisites#

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

Supported modes#

  • RunMacro Runner

What it does#

The Type Random Number command generates a random integer in a range and types it directly into the focused field (no clipboard), at a natural-timing speed. It can add leading zeros (e.g. 05).

Screenshots & video#

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

When to use it#

  • Quickly fill a random number (e.g. day 01–28) into a field.
  • Need a 2-digit format (with leading zero).
  • Type like a human instead of an instant paste.

When not to use it#

  • Do not use it when the number must be reused; generate it into a variable first.

Configuration steps#

  1. Click the number field.
  2. Add a Random › Type Random Number command.
  3. Enter min, max; (optional) enable leading zeros and random speed.
  4. Save.

Every option explained#

Min / Max#

The random integer range.

Leading zeros (padding)#

Pads with zeros to a fixed width (e.g. 3 → 03) based on min/max length.

Typing speed / random#

Speed per digit; enable random for a human feel.

Expected result#

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

Real example#

Example: type a random day 01–28#

  1. Click the "Day" field.
  2. Type Random Number, min=1, max=28, leading zeros on.
  3. RunMacro types e.g. 07.

Limitations and failure cases#

  • It types into the focused target; wrong focus sends it elsewhere and padding follows configuration.

Tips & common mistakes#

Unlike Random Integer (to clipboard), this types directly — remember to click the field first.

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.