Constructor
new RandomAction()
- Source:
Examples
//Shorthand, generates a random number between 0 and 10, saves the result in the variable named "random"
{
"random": [0, 10]
}
//Generate a random integer between 0 and 10, and save the result in the variable "myResultVariableName"
{
"random": {
"range": [0, 10],
"as": "myResultVariableName"
}
}
//Generate a random float number between 0 and 10, and save the result in the variable "myResultVariableName"
{
"random": {
"range": [0, 10],
"float": true,
"as": "myResultVariableName"
}
}