|
> You may be able to achieve your goal by changing the seed value on > successive iterations. The seed could also be random number. > CEERAN0 allows you to use the current GMT as the seed by specifying > a seed of zero -- you will need to set the seed to zero on each > iteration since CEERAN0 updates the seed variable in preparation > for the next call. Um. CEERAN0 updates the seed, in order to _give_ you a pseudorandom sequence. If you reset the seed to zero each time, you are tinkering with the pseudorandom algorithm, and I would expect the results to be less "random" than using the returned seed value. Of course, I could be wrong (I believe this has happened at least twice :), but my experiments with CEERAN0 shows that it gives a nicely uniform frequency distribution. -- Paul +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.