7 Replies Latest reply on Oct 16, 2007 7:38 AM by Greg Dove

    Array with unique random numbers

    rob day Adobe Community Professional & MVP
      Hi,
      I'm trying to come up with a function that will populate an array with 4 unique random numbers. I'm stuck on pushing unique numbers, the attached code creates the array, but sometimes there are duplicate numbers. I've tried a for staement inside the for stement to test for duplicates but get lost. Is there an easy way to do this? Thanks.