🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #1419

Re: RND Function Needed

#1419
From: Brian M McNamara
Date: Tue, 27 Nov 1990 05:34
15 lines
1393 bytes
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
Technical Details
Message-ID: <47694@eerie.acsu.Buffalo.EDU>
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!ub!ubvmsd.cc.buffalo.edu!v056ped5
References: <1484.2750D9EC@puddle.fidonet.org>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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