Random Numbers

razzsoftrazzsoft Member Posts: 38
edited November -1 in Working with GS (Mac)
Hi,

does anybody know how I can use the random command to generate multiple numbers but each number different to the previous random generated number

Comments

  • ForteForte Member, PRO Posts: 297
    Hi there,

    Make a rule then make a change attribute when whatever

    Check out the expression editor, in the drop down box when you open it, goto the bottom, there is one called "random" when you click on it, it should come up saying: Random (min,max) or something like that

    Then replace the Min and the Max with the numbers that you want it to generate

    Hope that was helpful

    p.s. Those min and max will be the max value it will generate, and the minimum value.
  • razzsoftrazzsoft Member Posts: 38
    Hi Dragokillz,

    Thanks for your reply. I have used the random expression as you said but the trouble I have if you create another random number straight after this one there is a chance that it will be the same as the first one. So I am looking for a method that will keep generating a random munber that is allways different than the previous ones.
  • EastboundEastbound Member, BASIC Posts: 1,074
    And it needs to be infinitely a different random number, or it just can't be the same as the previous one?
  • razzsoftrazzsoft Member Posts: 38
    Hi Eastbound,

    Yes it needs to be infinitely a different random number.
  • EastboundEastbound Member, BASIC Posts: 1,074
    I'm afraid you can't do it then.
Sign In or Register to comment.