Truk   -  Feb 21, 2014

Been fighting this forever and no success. Any idea how to set this variable with a random number for the duration of the variable:

so I have this: set -eu900 %timerC 1 (that works fine for 900 seconds) but i need this to work: set -eu $rand(222,900) %timerC 1

I need it to set the variable %timerC with the value of 1 for a random time between 222 and 900 seconds.

Thanks SO much!!

Meta  -  Feb 21, 2014

Since the number needs to be touching the u switch, you can use $+() to concatenate them together.

set $+(-eu,$r(222,900)) %timerC 1

Truk  -  Feb 21, 2014

Thanks!! I tried all kinds of things but not before the -eu :)

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.