random numbers according to user defined distribution ??

Dominic van Berkel d.v.berkel at student.tue.nl
Wed Aug 6 18:18:46 EDT 2008


On Thursday 07 August 2008 00:02, Alex <axel.kowald at rub.de> 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 :-(
> 
> Many thanks
> 
>  axel
I'm not aware of any module with that specific function, but it's
algorithmically not too complex I'd think. If you're writing an application
that does this I'll assume that you have a basic gist of how to implement
it ;). It's been a while since I messed with the subject, so I'm not
getting any further than graphs in my head right now. Good luck!

-- 
Dominic van Berkel
"Bi-la Kaifa"



More information about the Python-list mailing list