Implementaion of random.shuffle

Steve Holden steve at holdenweb.com
Tue Jul 17 22:30:49 CEST 2007


Josiah Carlson wrote:
> shabda raaj wrote:
[...]
> 
>> Anyway, is there some test harness we can run to test the robustness
>> of shuffle? We can run that test harness for large values and see at
>> what point all permutations are not possible or come with unequal
>> probability.
> 
> Shuffle works as intended.  Your assumptions about it's functionality 
> are incorrect.  Testing will only prove that your assumptions are wrong.
> 
Which is alone a good justification for testing.

easier-than-proving-oneself-right-ly y'rs  - steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd           http://www.holdenweb.com
Skype: holdenweb      http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------




More information about the Python-list mailing list