|
>> Some random number generators return a number from 0 to .999999. The formula then is: >> x = random_number * range + 1 which would return a number from 1 to 10. The API CEERAN0 does this. This is (I hope) the right proto but I cna't check right now: * Seed range is 0 to 2,147,483,646. Set from GMT if zero * if returned number is -1 then seed was invalid D CEERan0 Pr ExtProc('CEERAN0') D Seed 10I 0 D RandomNumber 8F D Feedback 12A Options(*NoPass) Jon Paris Jon.Paris@e400.com www.e400.com - A new wave of iSeries and AS/400 Education +--- | 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.