This document describes a how to generate a random number for Cisco Process Orchestrator (CPO).
The information in this document is based on Cisco Process Orchestrator version 2.3.1.
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.
How do you generate a random number in CPO?
Write a VBScript function to do such (using the Execute Windows Script activity).
Example: Set arrArgs = WScript.Arguments min = arrArgs.Item(0) max = arrArgs.Item(1) Randomize Wscript.Echo INT((max-min+1)*Rnd+min)
Feed it two inputs, Min and Max as variables. Then, the output of the script is the random number.
This is a general how-to and is not the only method to accomplish the task.