Nov-07-2018, 12:30 PM
I don't understand what the problem with using random.sample() is
from random import sample population = (23, 2, 49, 100, 101) my_sample = sample(population, 3) print(my_sample)
Output:[101, 100, 49]
>>>
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs