I know how to get a random number. But How can I get a Random number from a variable, like this
I don't think you can use a variable directly in the Random () command, but here's a workaround.
"x" = Int (Random (100) * vbl / 100)
Where vbl defines the range of the random number. If vbl = 10, "x" will be a random integer from 0-9.