Hi, I just jumped in on this thread because I'm curious about something.

William Wilson wrote:
> random() is better than rand(), but only because
> you can set more options on the function call.  
> rand() is probably there for compatibility.

"man 3 rand" on my RH5.0 system produces:
============================================================
"The  versions of rand() and srand() in the Linux C Library
use the same random number generator as random() and sran-
dom()..."
============================================================

Therefore, isn't it possible to derive exactly the same
functionality/results from rand as random?  I thought those features,
such as initstate and setstate, effected the random number generator,
and since they both use the same random number generator.......

What are these extra options?  What am I missing?  I've always used rand
on linux because of the fact that I thought it performed equally to
random.  As a result, I saw rand() and srand() as being slightly better
because they take less time to type.  ;-)

Regards,
David Taylor.


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to