On 2010-01-23 21:30 , Steven D'Aprano wrote:
On Sat, 23 Jan 2010 14:10:10 -0800, Paul Rubin wrote:
Steven D'Aprano writes:
The Box-Muller transform is reasonably simple, but you can't be serious
that it is simpler than adding twelve random numbers and subtracting
six!
If you want a normal d
On Sat, 23 Jan 2010 14:10:10 -0800, Paul Rubin wrote:
> Steven D'Aprano writes:
>> The Box-Muller transform is reasonably simple, but you can't be serious
>> that it is simpler than adding twelve random numbers and subtracting
>> six!
>
> If you want a normal distribution, using the Box-Muller t
Steven D'Aprano writes:
> The Box-Muller transform is reasonably simple, but you can't be serious
> that it is simpler than adding twelve random numbers and subtracting six!
If you want a normal distribution, using the Box-Muller transform is
simpler because it spares you the complication of fig
On Sat, 23 Jan 2010 12:29:22 -0800, Paul Rubin wrote:
> Peter Chant writes:
>> I remeber being told that adding up 12 random numbers in the range 0-1
>> (which is what most computer random number genertors at the time
>> chucked out) and subtracted 6 gives a pretty good normal distribution.
>> I
On Sat, 23 Jan 2010 11:10:52 -0800, thinke365 wrote:
> of course i have tried random package, but can this package generate
> random sequence that satisfy possion distribution , normal distribution
> and uniform distribution
Please don't talk garbage. If you had really tried the random module, yo
Peter Chant writes:
> I remeber being told that adding up 12 random numbers in the range 0-1
> (which is what most computer random number genertors at the time chucked
> out) and subtracted 6 gives a pretty good normal distribution. I think I
> did try it once and it failed, but I must have do
thinke365 writes:
> of course i have tried random package, but can this package generate random
> sequence that satisfy possion distribution , normal distribution and uniform
> distribution
Did you look at the documentation?
--
http://mail.python.org/mailman/listinfo/python-list
thinke365 writes:
> such as uniform distribution, Normal distribution or poisson distribution.
> is there any package that can be used to generate such random numbers.
It's all in the standard library, the module is called -surprisingly-
'random'.
- use random.uniform for the uniform distributi
thinke365 wrote:
>
> such as uniform distribution, Normal distribution or poisson distribution.
> is there any package that can be used to generate such random numbers.
>
I remeber being told that adding up 12 random numbers in the range 0-1
(which is what most computer random number genertors
>
>
of course i have tried random package, but can this package generate random
sequence that satisfy possion distribution , normal distribution and uniform
distribution
--
View this message in context:
http://old.nabble.com/how-to-generate-random-numbers-that-satisfy-certain-distribution-
On Jan 23, 10:37 pm, thinke365 wrote:
> such as uniform distribution, Normal distribution or poisson distribution.
> is there any package that can be used to generate such random numbers.
>
> --
> View this message in
> context:http://old.nabble.com/how-to-generate-random-numbers-that-satisfy-cer
such as uniform distribution, Normal distribution or poisson distribution.
is there any package that can be used to generate such random numbers.
--
View this message in context:
http://old.nabble.com/how-to-generate-random-numbers-that-satisfy-certain-distribution-tp27288180p27288180.html
12 matches
Mail list logo