473,385 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Large Number Generation

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
3 926
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: ANt | last post by:
Hi, we have some major GC issues at present with a system we're trying to put live. It's a live calculation engine that's distributed across about 30 Java server processes. A set of processes...
23
by: assaf__ | last post by:
Hello, I am beginning to work on a fairly large project and I'm considering to use python for most of the coding, but I need to make sure first that it is reliable enough. I need to make sure...
1
by: DJTB | last post by:
zodb-dev@zope.org] Hi, I'm having problems storing large amounts of objects in a ZODB. After committing changes to the database, elements are not cleared from memory. Since the number of...
2
by: JS | last post by:
Hello all! I have come on to a problem for which I am not able to find a solution searching the web. What I am trying to do is reading a log-file with a size of 1.3 GB. When reading it using...
1
by: BbEsy | last post by:
hello I have one questiom im new to SQL dbs... I need to generate ID in one table in this format YYYYMMDDXXX where YYYYMMDD is date of day and XXX is uniqe number raising by 1 . and every...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.