[Python-checkins] python/dist/src/Lib random.py,1.33,1.34

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Thu, 23 May 2002 16:58:20 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv24929

Modified Files:
	random.py 
Log Message:
Whitespace normalized.

Index: random.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/random.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** random.py	23 May 2002 19:44:49 -0000	1.33
--- random.py	23 May 2002 23:58:17 -0000	1.34
***************
*** 118,122 ****
      generator of your own devising: in that case, override the following
      methods:  random(), seed(), getstate(), setstate() and jumpahead().
!     
      """
  
--- 118,122 ----
      generator of your own devising: in that case, override the following
      methods:  random(), seed(), getstate(), setstate() and jumpahead().
! 
      """
  
***************
*** 375,379 ****
  
          mu is the mean, and sigma is the standard deviation.
!         
          """
          # mu = mean, sigma = standard deviation
--- 375,379 ----
  
          mu is the mean, and sigma is the standard deviation.
! 
          """
          # mu = mean, sigma = standard deviation
***************
*** 402,406 ****
          normal distribution with mean mu and standard deviation sigma.
          mu can have any value, and sigma must be greater than zero.
!         
          """
          return _exp(self.normalvariate(mu, sigma))
--- 402,406 ----
          normal distribution with mean mu and standard deviation sigma.
          mu can have any value, and sigma must be greater than zero.
! 
          """
          return _exp(self.normalvariate(mu, sigma))
***************
*** 418,422 ****
          Deprecated in version 2.3.  Use:
              (mean + arc * (Random.random() - 0.5)) % Math.pi
!         
          """
          # mean: mean angle (in radians between 0 and pi)
--- 418,422 ----
          Deprecated in version 2.3.  Use:
              (mean + arc * (Random.random() - 0.5)) % Math.pi
! 
          """
          # mean: mean angle (in radians between 0 and pi)
***************
*** 437,441 ****
          called "lambda", but that is a reserved word in Python.)  Returned
          values range from 0 to positive infinity.
!         
          """
          # lambd: rate lambd = 1/mean
--- 437,441 ----
          called "lambda", but that is a reserved word in Python.)  Returned
          values range from 0 to positive infinity.
! 
          """
          # lambd: rate lambd = 1/mean
***************
*** 452,461 ****
      def vonmisesvariate(self, mu, kappa):
          """Circular data distribution.
!         
          mu is the mean angle, expressed in radians between 0 and 2*pi, and
          kappa is the concentration parameter, which must be greater than or
          equal to zero.  If kappa is equal to zero, this distribution reduces
          to a uniform random angle over the range 0 to 2*pi.
!         
          """
          # mu:    mean angle (in radians between 0 and 2*pi)
--- 452,461 ----
      def vonmisesvariate(self, mu, kappa):
          """Circular data distribution.
! 
          mu is the mean angle, expressed in radians between 0 and 2*pi, and
          kappa is the concentration parameter, which must be greater than or
          equal to zero.  If kappa is equal to zero, this distribution reduces
          to a uniform random angle over the range 0 to 2*pi.
! 
          """
          # mu:    mean angle (in radians between 0 and 2*pi)
***************
*** 591,595 ****
  
          Not thread-safe without a lock around calls.
!         
          """
  
--- 591,595 ----
  
          Not thread-safe without a lock around calls.
! 
          """
  
***************
*** 642,648 ****
          Conditions on the parameters are alpha > -1 and beta} > -1.
          Returned values range between 0 and 1.
!         
          """
!         
          # This version due to Janne Sinkkonen, and matches all the std
          # texts (e.g., Knuth Vol 2 Ed 3 pg 134 "the beta distribution").
--- 642,648 ----
          Conditions on the parameters are alpha > -1 and beta} > -1.
          Returned values range between 0 and 1.
! 
          """
! 
          # This version due to Janne Sinkkonen, and matches all the std
          # texts (e.g., Knuth Vol 2 Ed 3 pg 134 "the beta distribution").
***************
*** 668,672 ****
  
          alpha is the scale parameter and beta is the shape parameter.
!         
          """
          # Jain, pg. 499; bug fix courtesy Bill Arms
--- 668,672 ----
  
          alpha is the scale parameter and beta is the shape parameter.
! 
          """
          # Jain, pg. 499; bug fix courtesy Bill Arms