Subject | Re: [firebird-support] srand question |
---|---|
Author | Frank Schlottmann-Goedde |
Post date | 2004-07-17T16:17:06Z |
Robby wrote:
to seed the (new) rand function.
Frank
--
Fascinating creatures, phoenixes, they can carry immensely heavy loads,
their tears have healing powers and they make highly faithful pets.
- J.K. Rowling
> I stuck FB 2.0's srand UDF functionality into FB 1.5.1 and wassrand is just the same as the old rand function, it uses the actual time
to seed the (new) rand function.
> wondering how often I have to use it to seed the random numberI have no idea, I just needed it to create random data inside a procedure.
> generator. i.e. does a single seed called anywhere last on the
> entire server as long as it's running, is it a per-connection thing,
> or should I reseed in every procedure/trigger that uses rand()?
> (I guess reseeding could never hurt, as I'd get a new psuedo-randomEvery other minute I guess :-)
> sequence out of rand() whenver I do it....)
Frank
--
Fascinating creatures, phoenixes, they can carry immensely heavy loads,
their tears have healing powers and they make highly faithful pets.
- J.K. Rowling