[issue18900] Add the random.distrib module

Serhiy Storchaka report at bugs.python.org
Mon Sep 2 00:24:41 CEST 2013


Serhiy Storchaka added the comment:

Of course if this idea will be accepted we can turn current functions in the random module into wrappers around generators from the distrib module.

E.g.:

    def triangular(self, *args, **kwargs):
        return next(triangular(*args, random=self, **kwargs))

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18900>
_______________________________________


More information about the Python-bugs-list mailing list