DocsRandomType Random Number

Type a random number directly in RunMacro

RunMacro RunnerRunMacro 3.5+

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.

Dialog & quick setup

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

Options reference

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.

Modes & when to use

RunMacro Runner

Best for

  • 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.

Use an alternative when

  • Do not use it when the number must be reused; generate it into a variable first.
Before you run
  • Add Type Random Number to the macro.
  • Prepare the data or target that Type Random Number will use.

Example workflow

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

Tips & limitations

Unlike Random Integer (to clipboard), this types directly — remember to click the field first.
  • It types into the focused target; wrong focus sends it elsewhere and padding follows configuration.

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.