delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/08/21/09:45:17

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: random number generator
Date: 21 Aug 2001 13:39:06 GMT
Organization: Cornell University
Lines: 31
Sender: asu1 AT cornell DOT invalid (on slip-32-102-40-253.ny.us.prserv.net)
Message-ID: <Xns9104623649E0DASINANUNUR@132.236.56.8>
References: <3B81E0B9 DOT 35A8BDAA AT hotmsil DOT com>
NNTP-Posting-Host: slip-32-102-40-253.ny.us.prserv.net
X-Trace: news01.cit.cornell.edu 998401146 24943 32.102.40.253 (21 Aug 2001 13:39:06 GMT)
X-Complaints-To: usenet AT news01 DOT cit DOT cornell DOT edu
NNTP-Posting-Date: 21 Aug 2001 13:39:06 GMT
User-Agent: Xnews/4.06.22
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Christopher all <Chrisall AT hotmsil DOT com> wrote in 
news:3B81E0B9 DOT 35A8BDAA AT hotmsil DOT com:

> Hi,
>     I was wondering why the random generator classes like srandom.h
> ,random.h are not included in the package.

THese files, whatever they may be, would be called header files not 
classes.

The Standard C Library includes rand() and srand() which, by the standard, 
are located in stdlib.h. All of this you can find out by typing 

info libc alpha rand

> It will be great if someone could post the source code for these files.

Who knows what those files are.

>  I am actually in need of  Poisson distribution or Exponential
> distribution generator.

You can search for packages on Google. Or try 
http://www.cs.wm.edu/~va/software/park/park.html

Sinan.

-- 
--------------------------------
A. Sinan Unur
http://www.unur.com/

- Raw text -


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