Re: Random number generator

2009-04-09 Thread Jim Gibson
On 4/9/09 Thu Apr 9, 2009 2:34 PM, ANJAN PURKAYASTHA anjan.purkayas...@gmail.com scribbled: I need a Bernoulli random number generator which takes as inputs: a value for p(1) (probability of choosing a 1) and the number of trials and outputs a series of 0s and 1s according to the model

Re: Random number generator

2009-04-09 Thread Chas. Owens
On Thu, Apr 9, 2009 at 17:34, ANJAN PURKAYASTHA anjan.purkayas...@gmail.com wrote: I need a Bernoulli random number generator which takes as inputs: a value for p(1) (probability of choosing a 1) and the number of trials and outputs a series of 0s and 1s according to the model B(p(1)). Any

Re: Random number generator

2009-04-09 Thread ANJAN PURKAYASTHA
Thank you guys. Anjan On Thu, Apr 9, 2009 at 6:59 PM, Chas. Owens chas.ow...@gmail.com wrote: On Thu, Apr 9, 2009 at 17:34, ANJAN PURKAYASTHA anjan.purkayas...@gmail.com wrote: I need a Bernoulli random number generator which takes as inputs: a value for p(1) (probability of choosing a 1)