[Scipy-tickets] [SciPy] #539: inconsistent behavior of scipy.stats.distributions.randint

SciPy scipy-tickets@scipy....
Mon Oct 27 15:10:05 CDT 2008

#539: inconsistent behavior of scipy.stats.distributions.randint
 Reporter:  emv          |        Owner:  somebody
     Type:  defect       |       Status:  new     
 Priority:  low          |    Milestone:  0.7.0   
Component:  scipy.stats  |      Version:          
 Severity:  minor        |   Resolution:          
 Keywords:               |  
Comment (by josefpktd):

 randint is the only discrete distribution that defines rvs instead of
 Is there a reason for this, or was this just cut-and-paste?

 For consistency and to have argcheck and so on, change to the same pattern
 as all other discrete distributions

     def _rvs(self, min, max=None):
         return mtrand.randint(min, max, self._size)
         return mtrand.randint(min, max, size=self._size)


Ticket URL: <http://scipy.org/scipy/scipy/ticket/539#comment:1>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.

More information about the Scipy-tickets mailing list