generating random numbers without repeat

trptrp Member Posts: 16
edited November -1 in Working with GS (Mac)
Hello,

i need some help to generate random numbers without repeating the last one. I made a Attribute called LastNumber and generate a random number with random(x,y), but how can i make a rule that says until random(x,y) is not = LastNumber => generate new number.

Thanks from a Newbee

Comments

  • djmoyadjmoya Member Posts: 16
    any help out there im having the exact same problem?
  • ApplaudAppsApplaudApps Member Posts: 308
    Why don't you use a timer every 0.1 seconds generates a random number. Put the timer inside a rule that is false until the new number is different to the last number. Set the Boolean to true when you have a different random number and that will cancel the rule and thus the timer.
Sign In or Register to comment.