Read and Review Automation Anywhere Documentation

Automation Anywhere Version 11.3

Close Contents

Contents

Open Contents

Random Variables

  • Updated: 5/06/2020
    • 11.3.x
    • Explore
    • Enterprise

Random Variables

You can create two types of random variables: string and numerical.

Random variables are useful when you need to generate a random, repetitive string or numerical set. The values are generated when you run the task.

Common use cases:

  • String: Generating test data as input for fields or forms
  • Numerical: Generating ID numbers in batch

After you create the variable, you can use it by inserting the variable in several of the Workbench commands.

How to Create a Random Type Variable

Creating a Random String Variable

To create a random string variable, follow these steps:

  1. In the Workbench, click the Variable Manager icon at the top or on the tab on the right side.
  2. Click the Add button. The "Add Variable" window is displayed, with the "Create New Variable" option selected.
  3. Select type Random.
  4. Enter a name for the variable. The name must begin with an alphabetic character and cannot contain spaces.
  5. Select the Random String radio button. This is the default.
  6. Specify the string length in the field provided. The value cannot exceed 255.
  7. Click Save.

Creating a Random Numeric Variable

To create a random numeric variable, follow these steps:

  1. In the Workbench, click the Variable Manager icon at the top or on the tab on the right side.
  2. Click the Addbutton. The "Add Variable" window is displayed, with the "Create New Variable" option selected.
  3. Select type Random.
  4. Enter a name for the variable. The name must begin with an alphabetic character and cannot contain spaces.
  5. Select the Random Number - Rangeradio button.
  6. Specify the From and To values for the range.
  7. Click Save.
Send Feedback