Leif/Tom,

I don't think that would help you.

The RAND_MAX item is so you can tell what the max value rand will
return is.  It is not telling rand what the max value should be.

#define's in C/C++ are referenced at compile time.  Not run time.

Regards,
Bob Crothers
Cornerstone Communications
http://www.cstoneindy.com




-----Original Message-----
From: midrange-l-admin@midrange.com
[mailto:midrange-l-admin@midrange.com]On Behalf Of Leif Svalgaard
Sent: Thursday, August 30, 2001 2:29 PM
To: midrange-l@midrange.com
Subject: Re: Changing qsysinc/h(stdlib)

can you not make a local copy of qsysinc/h(stdlib) and change the copy,
then include the copy instead of the original?

----- Original Message -----
From: Westdorp, Tom <Tom.Westdorp@StationCasinos.com>
To: <midrange-l@midrange.com>
Sent: Thursday, August 30, 2001 2:21 PM
Subject: Changing qsysinc/h(stdlib)


> 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.
>

_______________________________________________
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 thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.