[Tutor] Having trouble with a component of the random module
bob gailer
bgailer at gmail.com
Sun Aug 31 15:00:06 CEST 2008
OmerT wrote:
> I'm unfamiliar with the random.sample function, yet I can't help but wonder:
> Do you ever got the same card twice?
>
Quoting the manual:
sample( population, k)
Return a k length list of unique elements chosen from the population
sequence. Used for random sampling without replacement.
--
Bob Gailer
Chapel Hill NC
919-636-4239
When we take the time to be aware of our feelings and
needs we have more satisfying interatctions with others.
Nonviolent Communication provides tools for this awareness.
As a coach and trainer I can assist you in learning this process.
What is YOUR biggest relationship challenge?
More information about the Tutor
mailing list