[algogeeks] Re: generating a random number having uniform distribution using random coin flips

2008-04-20 Thread Zhang Fan
containg all t is ... > > this gives normal distribution in the range (0,1) .. > now multiply it by (b-a) and add a > > Finish > > > > On 4/18/08, Zhang Fan <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Can y

[algogeeks] Re: generating a random number having uniform distribution using random coin flips

2008-04-18 Thread Zhang Fan
Can you explain it more detailedly? A number composed of randomly generated log b bits is a number distributed between [0, b], is it equal to random(a, b) ? On Tue, Apr 15, 2008 at 5:20 PM, Chonku <[EMAIL PROTECTED]> wrote: > What you need to generate is a random number between a & b using > r