per korbaach
solution is:
choose(int(random(0,20)),int(random(21,39)))
The original question was:
So I know how to ::
choose(0,1,2,3,4,5,6,7,8) to select a certain frame number
and I know how to
int(random(0,39)) to randomly select a whole number between 0 and 38.
but what if I wanted to
randomly select a frame number between 2 different ranges?
for example:
I have 40 frames, and I want to NOT select one of them;
for example frame 20
I could do
choose(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39)
but this seems pretty long and time consuming if I had multiple events doing the same thing with a different number, so I was hoping that there was a way to
do something like this:
choose(0thru19&21thru39)
int(random(0,19)&(21,39))
but these don't work.
Anyone know a solution?
is there one?
-
-
-
per korbaach
solution is:
choose(int(random(0,19)),int(random(21,39)))