Re: random numbers according to user defined distribution ??
- From: Dan Bishop <danb_83@xxxxxxxxx>
- Date: Wed, 6 Aug 2008 21:09:30 -0700 (PDT)
On Aug 6, 8:26 pm, Steven D'Aprano <st...@REMOVE-THIS-
cybersource.com.au> wrote:
On Wed, 06 Aug 2008 15:02:37 -0700, Alex wrote:...
Hi everybody,
I wonder if it is possible in python to produce random numbers according
to a user defined distribution? Unfortunately the random module does not
contain the distribution I need :-(
This is a strange question. Of course you can -- just write a function to
do so! Here's some easy ones to get you started:
There's no general way to create a random function for an arbitrary
distribution. I don't think there's a general way to *describe* an
arbitrary random distribution.
What about the quantile function?
.
- Follow-Ups:
- Re: random numbers according to user defined distribution ??
- From: Steven D'Aprano
- Re: random numbers according to user defined distribution ??
- References:
- random numbers according to user defined distribution ??
- From: Alex
- Re: random numbers according to user defined distribution ??
- From: Steven D'Aprano
- random numbers according to user defined distribution ??
- Prev by Date: Re: Function from C/PHP to Python
- Next by Date: Re: random numbers according to user defined distribution ??
- Previous by thread: Re: random numbers according to user defined distribution ??
- Next by thread: Re: random numbers according to user defined distribution ??
- Index(es):
Relevant Pages
|