Mail Archives: djgpp/1997/12/18/20:20:50
At 12:59 12/17/1997 +0100, Mirek Prywata wrote:
>Arbie wrote:
>> In other compilers I can use the randomize() function fine but I
>> always get an error if I use randomize() in a program Im doing via
>> DJGPP. Is it called or something else ? Which header file does it use
>> etc ?
>
>Look into stdlib.h in borland include dir. random() and randomize() are
>only makros, you can copy them to your source code, and use them. RTFM
>(in BC ) for more info. random() is not ANSI C function and it apperas
>only in BC (I may be wrong).
`rand' and the corresponding `srand' are ANSI. `random' and `srandom'
originated in BSD Unix, however I think most libraries contain them, for
compatibility if nothing else. DJGPP does have `random' and in fact it is a
better random number generator than `rand'. The legal issues of letting
`rand' have the better algorithm also are being looked at.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -