I wander if it is possible for a variable to somehow store more then one number without parsing them trough tokens later. Basically I'd like to store values that are used later in Random expression as (n,n2) and then use them like this : random(variable). Is that possible?
Tokens are nice to work with though.
variable(text) = str(n1)&"//"&str(n2)&"//"
n1 = int(tokenat(variable(text),0,"//"))
n2 = int(tokenat(variable(text),1,"//"))
r = random(int(tokenat(variable(text),0,"//")),int(tokenat(variable(text),1,"//")))
I think the answer is no, but it shouldn't really be a problem. random() will accept number values, but not strings. Like 99instances2Go says, either just use tokens (they're easy) or just plug two separate variables into the random expression, as in random(variable1,variable2).
Develop games in your browser. Powerful, performant & highly capable.
Can still use Cantor pairing.
I would like a cantor plugin.