[S] C random number generator

Xu Fan (fan@stat.cmu.edu)
Sun, 10 May 1998 21:54:12 -0400


I rewrite the MCMC S codes into C. Any suggestions for C random number
generating?

1. I found that C random number generated repeated itself. How do I
reset the seeds?

2. which C functions are good to use? rand(), drand48() ..

3. how to construct the random normal, exponential etc.?

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news