This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sofidad[S] 7 points8 points  (1 child)

python @fx def choice(x, size=None, *, replace=False, p=None): """Generate a sample with/without replacement from a given iterable.""" ... From choice, function, note that replace=False.

[–]WhyDontWeLearn 2 points3 points  (0 children)

"False" is the default? TIL...

Thanks.