You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The definition of sample is that it should be WITHOUT replacement.
From the Rubydocs on Array#sample:
The elements are chosen by using random and unique indices into the array in order to ensure that an element doesn’t repeat itself unless the array already contained duplicate elements.
The text was updated successfully, but these errors were encountered:
The definition of sample is that it should be WITHOUT replacement.
From the Rubydocs on Array#sample:
The elements are chosen by using random and unique indices into the array in order to ensure that an element doesn’t repeat itself unless the array already contained duplicate elements.
The text was updated successfully, but these errors were encountered: