Large Number Generation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What is the best way to generate 10000+ and 1000000+ serial codes with a length of between 1 and 25 characters ?
 
Your question is a little open to interpretation, can you be more precise
in what you are trying to do.

Thanks

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

LBHenning said:
What is the best way to generate 10000+ and 1000000+ serial codes with a
length of between 1 and 25 characters ?
 
Can't you just pick 25 random digits and string them together??

For vPosition = 1 to 25
vSerialNumber (as a string) &= RandomDigit(0 to 9)
Next

Or even just use a GUID??
__________________________________
The Grim Reaper

LBHenning said:
Hi

Thanks for the reply.
To be more specific, I have to generate serial numbers ranging in size
from 1 up to 25 characters long. The problem comes when I try to generate
more than 10000, the program that I used freezes up. Now the tricky parts is
that I will have to be able to generate anything from 1 000 000 to 30 000
000 serials. And thus my problem.
 
Well I did use a variation of that, however the amount of numbers to be generated can reach into the 10 000 000 and the code is unstable and freezez up.
Besides I have to follow a linear path ie 1 to n.

Leonard
 
Back
Top