<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_random.py, branch v2.3.6</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_random.py?h=v2.3.6</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_random.py?h=v2.3.6'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-10-05T23:35:38Z</updated>
<entry>
<title>SF bug #812202:  randint is always even</title>
<updated>2003-10-05T23:35:38Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-10-05T23:35:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c601117f38aa5e1bcaeb81571eb183f97dca09f3'/>
<id>urn:sha1:c601117f38aa5e1bcaeb81571eb183f97dca09f3</id>
<content type='text'>
* Extend rangrange() to return meaningful results when the range is
  larger than 2**53.  Only applies to the MersenneTwister.  WichmannHill
  was left alone in the absence of a proof showing how multiple calls
  could be combined to produce long bit streams.

* WichmannHill was missing from __all__.
</content>
</entry>
<entry>
<title>SF bug #801342:  Bug (documentation or real, your choice) in random.sample.</title>
<updated>2003-09-05T21:40:30Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-09-05T21:40:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0b0aae087a3e3bb9fb109454f6deb2ab171f7eba'/>
<id>urn:sha1:0b0aae087a3e3bb9fb109454f6deb2ab171f7eba</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>SF bug #778964:  bad seed in python 2.3 random</title>
<updated>2003-08-09T18:20:16Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-08-09T18:20:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8cf915e9fb83678e9715394d0a5c4bb8221852f8'/>
<id>urn:sha1:8cf915e9fb83678e9715394d0a5c4bb8221852f8</id>
<content type='text'>
The default seed is time.time().
Multiplied by 256 before truncating so that fractional seconds are used.
This way, two consequetive calls to random.seed() are much more likely
to produce different sequences.
</content>
</entry>
<entry>
<title>SF bug #759889:  Pickling of Random is broken</title>
<updated>2003-06-24T20:29:04Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-06-24T20:29:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5f078ff7f0c6bb5086fae077379fc79729c34d2d'/>
<id>urn:sha1:5f078ff7f0c6bb5086fae077379fc79729c34d2d</id>
<content type='text'>
* Implement __reduce__() to support pickling.
* Add a test case to prove a successful roundtrip through pickle.
</content>
</entry>
<entry>
<title>Apply the simplified test_support boilerplate.</title>
<updated>2003-05-03T03:38:01Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-05-03T03:38:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=27922eef358c4952ad06625338bcad1dd7174e44'/>
<id>urn:sha1:27922eef358c4952ad06625338bcad1dd7174e44</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Simplify ref count test.</title>
<updated>2003-05-02T22:44:59Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-05-02T22:44:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=320a1b04543a8fa7c32227f4db18238ad84ce2ae'/>
<id>urn:sha1:320a1b04543a8fa7c32227f4db18238ad84ce2ae</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF bug #690083:  test_random fails sometimes</title>
<updated>2003-02-21T01:41:36Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-02-21T01:41:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=785d0a37e510ab4c76dc82e4605ad9ea0231d0a1'/>
<id>urn:sha1:785d0a37e510ab4c76dc82e4605ad9ea0231d0a1</id>
<content type='text'>
time.sleep(1) sometimes delays for fractionally less than a second
resulting in too short of an interval for C's time.time() function
to create a distinct seed.
</content>
</entry>
<entry>
<title>Add refcount test.</title>
<updated>2003-02-04T05:47:30Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-02-04T05:47:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=105b084b59208cd71759111d51861b50d1573ac4'/>
<id>urn:sha1:105b084b59208cd71759111d51861b50d1573ac4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>* Migrate sample distribution test from random.py to test_random.py.</title>
<updated>2003-01-17T17:23:23Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-01-17T17:23:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7b0cf76b72a499c692e444c75b4833475fa56db0'/>
<id>urn:sha1:7b0cf76b72a499c692e444c75b4833475fa56db0</id>
<content type='text'>
* Use Sets module to more clearly articulate a couple of tests.
</content>
</entry>
<entry>
<title>Move the statistical tests for four distributions into the unittest suite.</title>
<updated>2003-01-05T09:20:06Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-01-05T09:20:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3dd990c53a8d5c24bc7f1555872b0892f0e7cdf8'/>
<id>urn:sha1:3dd990c53a8d5c24bc7f1555872b0892f0e7cdf8</id>
<content type='text'>
</content>
</entry>
</feed>
