Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!ub!ubvmsd.cc.buffalo.edu!v056ped5 From: v056ped5@ubvmsd.cc.buffalo.edu (Brian M McNamara) Newsgroups: comp.lang.modula2 Subject: Re: RND Function Needed Message-ID: <47694@eerie.acsu.Buffalo.EDU> Date: 27 Nov 90 05:34:32 GMT References: <1484.2750D9EC@puddle.fidonet.org> Sender: news@acsu.Buffalo.EDU Reply-To: v056ped5@ubvmsd.cc.buffalo.edu Organization: University at Buffalo Lines: 15 Nntp-Posting-Host: ubvmsd.cc.buffalo.edu News-Software: VAX/VMS VNEWS V1.3-4.4 In article <1484.2750D9EC@puddle.fidonet.org>, Jon.Guthrie@p15.f20.n226.z1.fidonet.org (Jon Guthrie) writes... > > I need a random number generator for Modula-2. Any help would be > > appreciated. >Which compiler? Which Machine? I've got a Pseudorandom number generator for >FST Modula-2 (running under MS-DOS) but it uses some assembly language. Please post the source for the FST RND thang. I developed my own which seemed to be working great until recently when I realized that it had a period of about 50 generations. I took my numbers directly from a statistics textbook so I am sure it is a problem with my methodology. I think that users of the FTP compiler would appreciate it. If nothing else, "Hey, FST people... include a RND function in version 2.something +". Brian