Explore more
Functions
Math variables
3min
use math variables to insert a random number into your functions random returns a floating point, pseudo random number in the range \[ 0 , 1 ) (inclusive of 0 , but not 1 ) use the following formula to generate an integer pseudo random number in the range \[ min , max ] (inclusive of both, min and max ) {{floor(random (1 max 1 min + 1)) + 1 min}} example roll the dice you can employ the random variable to create a dice game that randomly picks a number, for example between 1 and 6, and then returns that number to a user in the mapping panel of the tools > set variable module, select the math functions tab select the floor function insert the following {{floor(random 6) + 1}}