Sep-19-2019, 01:52 PM
I also disbelieve any "theory" that random.sample returns duplicates (if there are none in the population given to random.sample). I bet I know the exact algorithm random.sample is using, and it's not possible for that algorithm to return duplicates. The only way it could is some sort of data corruption, in which case there is no possible way to guarantee no duplicates.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures