Random numbers but exclude some of them.
How can generate random number from, lets say 220 to 620 but exclude from 395 to 445.
I want some actors to be spawn randomly but if they colide to each other to move -75 or +75 pixels on x and y axis from its original position.
I want some actors to be spawn randomly but if they colide to each other to move -75 or +75 pixels on x and y axis from its original position.
Comments
This may work for a range between 100 and 400 excluding numbers between 201 and 299 but I can't find a suitable pattern/formula for your numbers:
random(100, 200) + (random(0, 1) * 200)
....or:
Change Attribute RandA to random(1,2)
Rule: When RandA =1
Change Attribute MyNum to random(220,394)
Otherwise
Change Attribute MyNum to random(446,620)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps