Jun-05-2017, 02:18 PM
(Jun-05-2017, 01:36 PM)SadoDeomeoon Wrote: How does sample work? (Do you have a link to some help, or such?) Like I said, I'm very new to this. :)
The sample function gives you a random sample from a sequence (the first parameter), that is k items long (the second parameter), without replacement (no index from the sequence is chosen more than once). The full documentation is here: https://docs.python.org/3/library/random...dom.sample. Learn to browse the documentation, it is quite good.
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