|
Booth, As you mention, RPG is a business oriented language. There are always exceptions, but where in your day-to-day business operations do you use random numbers? If you want to talk about business functions that RPG needs (or needed before RPG/IV) how about the POW or ** function. Ever try doing interest calculations in RPG? 14^.34 was always fun. -Walden -----Original Message----- From: mcsnet!midrange.com!midrange-l-owner@Mcs.Net [mailto:mcsnet!midrange.com!midrange-l-owner@Mcs.Net]On Behalf Of boothm@ibm.net Sent: Friday, December 19, 1997 11:53 AM To: MIDRANGE-L@midrange.com Subject: Re:re: Random Number generator on 12/19/97at 05:48 AM, the Great and Grand Wazir John Carr <74711.77@compuserve.com> said: >Booth >I think the point Jon Paris was making with his example(attached below) >is that by using our own procedures we can create OUR OWN opcodes. If >you want a RNG opcode, create the below procdure and call it RNG and then >you can use it as a function with your EVAL statement. John, you make a good point. That is the future, no doubt. But I have always wondered why RPG, a business oriented program, would have an opcode for square root but not an rng. btw, you said "we can create OUR OWN opcodes." As Tonto said "Where'd you get 'we' Kemo Sabe?" I can't yet bind a program, let alone write a C++ program. It is not a viable choice for me and never will be. Maybe someone will put together a small set of callable tools just for these special things? ---------------------------------------------------- Booth Martin --------------------------------------------------- +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to "MIDRANGE-L@midrange.com". | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to "MIDRANGE-L@midrange.com". | To unsubscribe from this list send email to MIDRANGE-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.