Generate a random number every 5 minutes
Recipe ToolsMarketingDeveloper Tool
What it does
When the clock triggers every 5 minutes, this automation runs custom ruby code in Workato Custom Code to generate a random number. The result is logged to the job report so someone can track the values over time.
Who it's for
Engineering teams who need to test systems with random data generation.
How teams use this
Test system behavior with random inputs
Generate random numbers on a schedule to feed into test environments and verify how systems respond to varied data. The job report keeps a record of all generated values for analysis.
Validate data processing pipelines
Use scheduled random number generation to test data pipelines and ensure they handle numeric inputs correctly. Logging each value helps trace any processing errors back to the input.
Filter random numbers to a specific range
Modify the ruby code to generate random numbers only within a specific range, such as 1 to 100. This requires setting minimum and maximum parameters so teams can test systems with constrained data sets.
How it works
- Start on a 5-minute schedule. This automation runs on a schedule, starting every 5 minutes without any manual input needed.
- Generate random number with ruby. Run custom ruby code in Workato Custom Code that produces a random number each time the automation runs.
- Log result to job report. Write the generated random number to the job report so the sequence of values is visible for review and testing.