Creating a random number generator in jscript and prevent duplicates
<p>We are trying to create a random number generator to create serial numbers for products on a virtual assembly line. 
We got the random numbers to generate, however since they are serial numbers we don't want it to create duplicates. 
Is there a way that it can go back and check to see if the number generated has already been generated, and then to tell it that if it is a duplicate to generate a new number, and to repeat this process until it has a "unique" number.</p>
