| Author |
Comment/Response |
John Thompson
|
10/22/98 09:18am
I am trying (unsuccessfully) to write a loop that will do a rnadom number generator by congruential method. the form we are supposed to use is is X(i+1)=(A X(i)+1)MOD M
a = 2^7 +1
M= 2^31 -1
I need to generate 40,000 random numbers between 0 and 1
then find std dev, mean etc...
any ideas on this
John Thompson
URL: , |
|