Newsgroups: sci.stat.math,comp.ai.alife,sci.nonlinear,sci.math.num-analysis
Path: cantaloupe.srv.cs.cmu.edu!das-news.harvard.edu!news2.near.net!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!EU.net!ieunet!tcdcs!news.tcd.ie!ddoff
From: ddoff@tcd.ie (david h. doff)
Subject: Re: Fast random number generator, binomial pdf
Message-ID: <Cx25zM.J5C@news.tcd.ie>
Sender: usenet@news.tcd.ie (TCD News System )
Organization: University of Dublin, Trinity College
References: <361v2v$b2m@carbon.denver.colorado.edu> <366fd4$jrt@b.stat.purdue.edu> <36dha6$6bd@cerberus-138.wustl.edu> <36f733$p9l@news.u.washington.edu> <36gnjt$153q@snap.stat.purdue.edu>
Distribution: inet
Date: Sun, 2 Oct 1994 18:28:34 GMT
Lines: 16
Xref: glinda.oz.cs.cmu.edu sci.stat.math:2804 comp.ai.alife:1061 sci.nonlinear:1692 sci.math.num-analysis:16223

I can't help noticing that none of the postings in this thread have
answered the original question, which has now disappeared into archive
space. but if I remember correctly was something like this:

Wanted - a RNG to produce 1 with a probability p and 0 with probability
of 1-p. How to avoid a step like "if rnd<p then x=1 else x=0"?
               ^^^^^
I would be interested in the answer too!

  ........................................................................
  :  David Doff, Geology Department, Trinity College, Dublin 2, Ireland  :
  :------------------------------.---------------------------------------:
  :      Tel: +3531 702 1419     :      e-mail: ddoff@tcd.ie             :
  :      Fax: +3531 671 1199     :              ddoff@alf2.tcd.ie        :
  :..............................:.......................................: 

