title: How to form shuffled batches in Python?
body: <p>I have a list of 100k entries and would like to split them into 10k shuffled batches. How to do this?</p>
  
  <p>I found a function <a href="http://scikit-learn.org/stable/modules/generated/sklearn.utils.shuffle.html" rel="nofollow noreferrer">shuffle</a> in <code>sklearn</code>, and it has a parameter of <code>n_samples</code>. But I don't see any guarantee, that this batch will cover all set.</p>
  
  <p>I would like to take random batches from the entire set but doesn't repeat them until all samples taken. Is this possible?</p>