Re: Number Generation
Posted in 2000
---- you wrote: > Hi All: > > I'm generating a number using an **algorithm**. I want > to make sure after generating every number, it should > not be a previously generated number. > > If I generate a number and look it up in the database > and come to know that it's already generated then I've > to go thru the generation cycle until I find a number > which is not previously generated. > > Is there any way to simplify the situation. Any help > in this regard is greatly appreciated. What do you mean by simplify, Dude? If you modified the algorithm so that it didn't produce duplicates, that would simplify the situation. AB ---------------------------------------------------------------- Get your free email from AltaVista at http://altavista.iname.com