Re: How to find available number in a list?
- From: HerHusband <unknown@xxxxxxxxxxx>
- Date: Wed, 15 Jun 2005 11:14:58 -0500
Chris,
> Why not use a random number for this id-field? Then scan the array if it
> is already in use and if it is, generate a new one.
That would work fairly well as long as the database is mostly empty. But,
as it got full, there would be a lot of generating and scanning till I
happened upon an unused number. And, random numbers can repeat from time to
time which seems like a waste of time too.
Thanks for the input!
Anthony
.
- Follow-Ups:
- Re: How to find available number in a list?
- From: Willem
- Re: How to find available number in a list?
- References:
- How to find available number in a list?
- From: HerHusband
- Re: How to find available number in a list?
- From: Chris Dams
- How to find available number in a list?
- Prev by Date: Re: Numerical accuracy of C++ and Fortran programs on 32 bit machines
- Next by Date: Re: How to find available number in a list?
- Previous by thread: Re: How to find available number in a list?
- Next by thread: Re: How to find available number in a list?
- Index(es):
Relevant Pages
|