delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/15/21:01:25

From: Charles Krug <charles AT pentek DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Random numbers again...
Date: Wed, 15 Oct 1997 09:11:13 -0400
Lines: 20
Message-ID: <3444C0F1.D1846C4B@pentek.com>
References: <343A8B8D DOT 4EA07EA2 AT provider DOT com DOT br> <3444650F DOT C84 AT iil DOT intel DOT com>
NNTP-Posting-Host: mail.pentek.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

amit wrote:

> one comment : using only hundreds of seconds as seed in many cases might
> not be good enough - if you run your program more than 100 times you'r
> bound
> to have (at least) two identical runs.

I suggest you get "Numerical Recipies in C" from your library (or buy it, its
worth having if you do any numerical computing).  There is a discussion of
various forms of RNGs, standards for judging, creating one w/ a long period
(2^32, under djgpp) and various forms.

--
Charles Krug, Jr.
Application Engineer
Pentek Corp
1 Park Way
Upper Saddle River, NJ 07458


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019