This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Emil Block wrote:
Toon Moene wrote:
G77's actually does: srand(iseed); return rand();
i = irand( k ) r = rand( k ) d = drand( k ) k INTEGER*4 InputSorry for answering this so late ...
k=0: Get next random number in the sequence k=1: Restart sequence, return first number k>0: Use as a seed for new sequence, return first number
rand REAL*4 Output
drand REAL*8 Output
irand INTEGER*4 Output
No mention of srand but the funtion exists as well as srandom.
Is G77 (rand_.c and srand_.c) doing an additional draw?
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |