-1

random.sample (population, k) in python means choosing uniformly and randomly from a population with distinct individuals k unique individuals, am I correct ? I never saw the uniform part. So, I guess it should be this way. Sorry if this is a duplicated as the following one. I initially put my concern there, but since I do not have enough poputation yet, someone flaged my answer. Anyway, any comments are greatly appreciated.

Related: What does random.sample() method in python do?

Community
  • 1
  • 1
stone stone
  • 75
  • 2
  • 10

1 Answers1

0

Of course. Every item has an equal chance of being drawn out.

Fran Borcic
  • 696
  • 6
  • 8