Article View: news.software.readers
Article #48859Re: [slrn] Random sigs again
From: John E. Davis
Date: Thu, 27 May 1999 00:00
Date: Thu, 27 May 1999 00:00
21 lines
1432 bytes
1432 bytes
On 27 May 1999 15:18:38 GMT, Heikki Kantola <hezu@iki.fi>
wrote:
>one could use $RANDOM if using zsh or bash) or write native rand()-
>function for S-Lang as there isn't one yet.
If I add a random number generator, I may add a simple one such as:
static variable R = 1UL;
define random ()
{
R = R * 69069UL + 1013904243UL;
return R/4294967296.0;
}
define srandom (x)
{
R = x;
}
--John
Technical Details
Message-ID:
<slrn7kr2vb.uh2.davis@aluche.mit.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn7knp73.1mp.scarblac-spamtrap@flits104-37.flits.rug.nl> <slrn7koerb.4i7.jewa@message-id.wahnes-world.de> <slrn7kq5ev.6m5.scarblac-spamtrap@flits104-37.flits.rug.nl> <slrn7kqoic.bm5.hezu@tuuri.ling.helsinki.fi>Show Full Headers
Complete Article Headers
Message-ID: <slrn7kr2vb.uh2.davis@aluche.mit.edu> Subject: Re: [slrn] Random sigs again Date: Thu, 27 May 1999 00:00:00 +0000 From: davis@space.mit.edu (John E. Davis) References: <slrn7knp73.1mp.scarblac-spamtrap@flits104-37.flits.rug.nl> <slrn7koerb.4i7.jewa@message-id.wahnes-world.de> <slrn7kq5ev.6m5.scarblac-spamtrap@flits104-37.flits.rug.nl> <slrn7kqoic.bm5.hezu@tuuri.ling.helsinki.fi> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 482800563 X-Complaints-To: usenet@eecs-usenet-02.mit.edu X-Trace: eecs-usenet-02.mit.edu 927828973 14580 18.75.2.45 (27 May 1999 18:16:13 GMT) Organization: Center for Space Research User-Agent: slrn/0.9.5.6 (UNIX) Reply-To: davis@space.mit.edu NNTP-Posting-Date: 27 May 1999 18:16:13 GMT Newsgroups: news.software.readers