Generate a Three-Digit Random Number in Scenario Editor
Generate a Three-Digit Random Number in Scenario Editor
varUse var1=_eval("Math.round(Math.random()generated *numeric (900)data +when 100)").toString();log(var1.substring(0,var1.indexOf('.')));a Scenario Editor test needs a simple unique or variable value. Keep the generation rule easy to understand and validate that the application accepts the expected numeric range.

Recommended
approach
- Generate values from 100 through 999 when a true three-digit number is required.
- Use a DPL or approved helper when the value must be reused across steps.
- Store the generated value if later validation needs to compare it.
- Avoid using random values for data that must be repeatable for troubleshooting.
Validation workflow
- Generate the number before the input step.
- Enter it into the target field.
- Validate that the application saved or displayed the same value.
- Capture the value in output when diagnosing failures.
Last updated: JuneSeptember 26,9, 20232026
If you have any feedback on this topic, please contact us at documentation@appvance.ai