By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,147 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

Large Number Generation

P: n/a
What is the best way to generate 10000+ and 1000000+ serial codes with a length of between 1 and 25 characters ?

Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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" <LB*******@discussions.microsoft.com> wrote in message
news:DF**********************************@microsof t.com...
What is the best way to generate 10000+ and 1000000+ serial codes with a length of between 1 and 25 characters ?

Nov 20 '05 #2

P: n/a
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" <LB*******@discussions.microsoft.com> wrote in message
news:1D**********************************@microsof t.com...
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.
Leonard

"One Handed Man ( OHM - Terry Burns )" wrote:
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" <LB*******@discussions.microsoft.com> wrote in message
news:DF**********************************@microsof t.com...
What is the best way to generate 10000+ and 1000000+ serial codes with
a length of between 1 and 25 characters ?


Nov 20 '05 #3

P: n/a
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

"The Grim Reaper" wrote:
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" <LB*******@discussions.microsoft.com> wrote in message
news:1D**********************************@microsof t.com...
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.

Leonard

"One Handed Man ( OHM - Terry Burns )" wrote:
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" <LB*******@discussions.microsoft.com> wrote in message
news:DF**********************************@microsof t.com...
> What is the best way to generate 10000+ and 1000000+ serial codes with a length of between 1 and 25 characters ?
>


Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.