Description

The RandomGen Generator randomly generates a number within a range. 


In This Article


Generator Parameters

The following parameters may be configured for the RandomGen Generator. Items with an asterisk* are required.  

  • startRange* - Defines the start range of the random Generator.
  • endRange* - Defines the end range of the random Generator.
  • uniqueLimit - Defines the number of times a given value is allowed to be regenerated. 
    • If uniqueLimit is left empty, there is no limit to how many times a value can be regenerated.
    • The uniqueLimit does not apply to dynamic start and end range values that change per row.
  • seed - Using the seed will ensure that the same random data is generated each time data is generated.


Example 1 - Generate Random Numbers Between 1 and 1000 with No Unique Limit


 

Sample Output


Example 2 - Generate Random Numbers Between 1 and 6 with a Unique Limit of 2

For this example, the preview data and loopCount has been limited to 10 records to ensure the possibilities are not exhausted during test data generation. 


Each number ranging from 1 to 6 can only be generated 2 times. 



Sample Output