| MainGenerateRandomNumber Method |
Generates a random number between the specified minimum and maximum values.
Codemethod usage | Description |
---|
Designed to be used in a process only (Yes/No) | No |
Action Object (data object type) | |
Namespace:
Omada.OE.UtilityCodeAssembly
Assembly:
Omada.OE.UtilityCodeAssembly (in Omada.OE.UtilityCodeAssembly.dll) Version: 15.0.0.0
Syntaxpublic bool GenerateRandomNumber(
CodeMethodInvokeContext context,
int min,
int max,
out int generatedNumber
)
Parameters
- context
- Type: Omada.OE.ModelCodeMethodInvokeContext
The code method invoke context object - min
- Type: SystemInt32
The inclusive lower boundary of the generated random number - max
- Type: SystemInt32
The exclusive upper boundary of the generated random number - generatedNumber
- Type: SystemInt32
The generated random number
Return Value
Type:
Boolean
See Also