DocsRandomRandom Float

Generate a random decimal in RunMacro

RunMacro RunnerRunMacro 3.5+

The Random Float command generates a random decimal within a min–max range, lets you pick a dot (.) or comma (,) separator, then places it in the clipboard.

Dialog & quick setup

RunMacro Random Float command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Random Float command in RunMacro.
  1. Add a Random › Random Float command.
  2. Enter min, max and choose the separator.
  3. Save. The result is in the clipboard.

Options reference

Min / Max

The value range of the random decimal.

Separator (. or ,)

Choose a dot or comma as the decimal separator to match the target format.

Modes & when to use

RunMacro Runner

Best for

  • Fill a random decimal (price, ratio...).
  • Create decimal test data.
  • Fit forms that use a comma decimal (VN format).

Use an alternative when

  • Do not use it for exact financial arithmetic or cryptographic values.
Before you run
  • Add Random Float to the macro.
  • Prepare the data or target that Random Float will use.

Example workflow

Example: a 0–1 decimal with comma

  1. Random Float, min=0, max=1, comma separator.
  2. Paste from Clipboard into the field.
Expected result: After execution, Random Float completes the described action and makes its result available to the next step.

Tips & limitations

Pick the separator matching the app locale to avoid number-format errors.
  • Floating-point formatting and rounding depend on bounds/locale; the destination must accept the text.

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.