[Discuss] script or program to generate a list of random numbers
Gary Gauthier
martian at shaw.ca
Thu Sep 28 16:52:15 PDT 2006
Hey folks,
I am not a programmer/developer, but am finding myself in want of something geared to coding.
What I am trying to accomplish is the following:
1. Generate a random number, given a specified range;
2. continue to the next generated number;
3. check to see if it is a duplicate of a previously generated number;
4. if so, delete this instance of the number and regenerate a new one;
5. if a delete/regen happens, reset the counter by one;
6. repeat until the specified number of iterations has completed;
7. output results in a text file
So besides the fact that I don't code, I also don't know what vehicle would be best suited for this.
Although, it would be nice to have it be platform independant.
Do any of the many talented individuals on this list know how to go about accomplishing this?
I tried to find something online, but was being hampered by the unfamiliarity of what I'm actually looking at when I did find something that looked like a potential solution. Nothing fit the bill exactly and again, I definitely don't know enough to do it myself or modify some existing code.
Ttyl, Gary
More information about the Discuss
mailing list