[Discuss] script or program to generate a list of random numbers

brent sirna bsirna at pinetreeline.org
Sat Sep 30 09:42:30 PDT 2006


On Thu, 2006-09-28 at 16:52 -0700, Gary Gauthier wrote:
> 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
> _______________________________________________
> Discuss mailing list
> Discuss at vlug.org
> http://ladybug.vlug.org/cgi-bin/mailman/listinfo/discuss

Hi,

Could the program apg ( Another Password Generator ) work for you.

http://www.adel.nursat.kz/apg/

example run

apg -a 1 -m 5 -x 5 -M N -n 10
73862
64959
02793
59188
59651
91237
71707
83252
15613
99497

Brent




More information about the Discuss mailing list