|
no can do. That #define value is a constant referenced when the rand C function was compiled. rand would have to be recompiled to pick up the new value. Steve Richter ---------- Original Message ---------------------------------- From: "Westdorp, Tom" <Tom.Westdorp@StationCasinos.com> Reply-To: midrange-l@midrange.com Date: Thu, 30 Aug 2001 12:21:37 -0700 >If I understand the 'rand' C function correctly, it returns a pseudo-random >number limited on the high end by the value set in qsysinc/h(stdlib) as >follows " #define RAND_MAX 32767". > >I have a requirement for a (much) higher max number. In trying to update I >find the file is protected from update/add/delete by attribute. > >1. Is it possible to change it to " #define RAND_MAX 524272" >2. If so, how? > >I'm calling it as an extproc from RPGIV on r510 and will limit the LoRange - >HiRange as previously discussed in the archives at midrange.com. > >TIA > >Tom Westdorp >Station Casinos >_______________________________________________ >This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list >To post a message email: MIDRANGE-L@midrange.com >To subscribe, unsubscribe, or change list options, >visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l >or email: MIDRANGE-L-request@midrange.com >Before posting, please take a moment to review the archives >at http://archive.midrange.com/midrange-l. > >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.