Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'lcg' topicStudent Support Forum > General > "lcg"

Next Comment >Help | Reply To Topic
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: ,

Subject (listing for 'lcg')
Author Date Posted
lcg John Thompson 10/22/98 09:18am
Re: lcg Forum Modera... 10/27/98 10:06am
Next Comment >Help | Reply To Topic