caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Shawn Wagner <shawnw@speakeasy.org>
To: caml-list@inria.fr
Subject: Re: [Caml-list] generating random variables
Date: Thu, 9 May 2002 18:51:05 -0700	[thread overview]
Message-ID: <20020509185105.P1213@speakeasy.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0205091954190.6658-100000@lcavpc41.epfl.ch>; from henridf@lcavsun1.epfl.ch on Thu, May 09, 2002 at 07:55:44PM +0200

On Thu, May 09, 2002 at 07:55:44PM +0200, Henri Dubois-Ferriere wrote:
> [apologies if this is posted twice on the newsgroup; i believe the 
> recipients of the mail-list did not get it the first time around]
> 
> 
> Hello, 
> 
> For some simulation studies,  I need to generate exponential,
> gaussian, and poisson random variables. Maybe also some more exotic
> ones a little later on.
> 
> I have looked around, but did not seem to find any available libraries
> for generating random variables (except of course for the uniform
> variables in Random). Can anyone point me to such a thing, if it
> exists?
> 

My Stew library (Available at http://raevnos.pennmush.org/code/ocaml.html)
includes some random number stuff. There are a few modules for random number
distributions (Functorized so you can use your choice of actual (P)RNG
generators with them; I like the Mersenne Twister, also part of the
library.), and I just added exponential and poisson distributions after
seeing your email. :)

-- 
Shawn Wagner
shawnw@speakeasy.org
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  parent reply	other threads:[~2002-05-10  1:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-09 17:55 Henri Dubois-Ferriere
2002-05-09 18:22 ` David Chase
2002-05-09 18:45 ` Olivier Andrieu
2002-05-10  1:51 ` Shawn Wagner [this message]
2002-05-10 14:09   ` [Caml-list] Using the O'Caml toplevel inside a C program Emmanuel Chailloux
2002-05-14  8:59     ` Xavier Leroy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020509185105.P1213@speakeasy.org \
    --to=shawnw@speakeasy.org \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).