1. 23 Mar, 2008 2 kayıt (commit)
  2. 03 Ara, 2007 1 kayıt (commit)
  3. 19 Ock, 2007 1 kayıt (commit)
  4. 20 Ara, 2006 1 kayıt (commit)
  5. 10 Haz, 2006 1 kayıt (commit)
    • Tim Peters's avatar
      shuffle() doscstring: Removed warning about sequence length · 0e115958
      Tim Peters yazdı
      versus generator period.  While this was a real weakness of the
      older WH generator for lists with just a few dozen elements,
      and so could potentially bite the naive ;-), the Twister should
      show excellent behavior up to at least 600 elements.
      
      Module docstring:  reflowed some jarringly short lines.
      0e115958
  6. 01 Nis, 2006 1 kayıt (commit)
  7. 29 Mar, 2006 1 kayıt (commit)
  8. 26 Agu, 2005 1 kayıt (commit)
  9. 19 Agu, 2005 1 kayıt (commit)
  10. 30 Nis, 2005 1 kayıt (commit)
  11. 03 Ock, 2005 1 kayıt (commit)
  12. 27 Eyl, 2004 1 kayıt (commit)
  13. 13 Eyl, 2004 1 kayıt (commit)
  14. 05 Eyl, 2004 1 kayıt (commit)
  15. 03 Eyl, 2004 1 kayıt (commit)
  16. 31 Agu, 2004 2 kayıt (commit)
    • Tim Peters's avatar
      HardwareRandom: Go back to multiplying by 2**-BPF instead of using · 7c2a85b2
      Tim Peters yazdı
      ldexp.  Both methods are exact, and return the same results.  Turns out
      multiplication is a few (but just a few) percent faster on my box.
      They're both significantly faster than using struct with a Q format
      to convert bytes to a 64-bit long (struct.unpack() appears to lose due
      to the tuple creation/teardown overhead), and calling _hexlify is
      significantly faster than doing bytes.encode('hex').  So we appear to
      have hit a local minimum (wrt speed) here.
      7c2a85b2
    • Raymond Hettinger's avatar
      Take advantage of the math library's ldexp for assembling a float by · 3fa19d7f
      Raymond Hettinger yazdı
      components without division and without roundoff error for properly
      sized mantissas (i.e. on systems with 53 or more mantissa bits per
      float).  Eliminates the previous implementation's rounding bias as
      aptly demonstrated by Tim Peters.
      3fa19d7f
  17. 30 Agu, 2004 1 kayıt (commit)
  18. 07 Haz, 2004 1 kayıt (commit)
  19. 05 Haz, 2004 1 kayıt (commit)
  20. 23 Şub, 2004 1 kayıt (commit)
  21. 18 Ock, 2004 1 kayıt (commit)
  22. 06 Kas, 2003 1 kayıt (commit)
  23. 12 Eki, 2003 1 kayıt (commit)
  24. 05 Eki, 2003 1 kayıt (commit)
    • Raymond Hettinger's avatar
      SF bug #812202: randint is always even · 2f726e90
      Raymond Hettinger yazdı
      * Added C coded getrandbits(k) method that runs in linear time.
      * Call the new method from randrange() for ranges >= 2**53.
      * Adds a warning for generators not defining getrandbits() whenever they
        have a call to randrange() with too large of a population.
      2f726e90
  25. 06 Eyl, 2003 1 kayıt (commit)
    • Raymond Hettinger's avatar
      SF bug #801342: Bug (documentation or real, your choice) in random.sample. · 66d09f1b
      Raymond Hettinger yazdı
      random.sample() uses one of two algorithms depending on the ratio of the
      sample size to the population size.  One of the algorithms accepted any
      iterable population argument so long as it defined __len__().  The other
      had a stronger requirement that the population argument be indexable.
      
      While it met the documentation specifications which insisted that the
      population argument be a sequence, it made random.sample() less usable
      with sets.  So, the second algorithm was modified to coerce non-indexable
      iterables and dictionaries into a tuple before proceeding.
      66d09f1b
  26. 30 Agu, 2003 1 kayıt (commit)
  27. 09 Agu, 2003 1 kayıt (commit)
    • Raymond Hettinger's avatar
      SF bug #778964: bad seed in python 2.3 random · 3081d59f
      Raymond Hettinger yazdı
      The default seed is time.time().
      Multiplied by 256 before truncating so that fractional seconds are used.
      This way, two successive calls to random.seed() are much more likely
      to produce different sequences.
      3081d59f
  28. 05 Agu, 2003 1 kayıt (commit)
  29. 24 Haz, 2003 1 kayıt (commit)
  30. 19 Haz, 2003 2 kayıt (commit)
  31. 13 Haz, 2003 1 kayıt (commit)
  32. 24 May, 2003 1 kayıt (commit)
  33. 17 Ock, 2003 1 kayıt (commit)
  34. 07 Ock, 2003 1 kayıt (commit)
  35. 05 Ock, 2003 1 kayıt (commit)
  36. 04 Ock, 2003 2 kayıt (commit)