'Return a randomised portion of the training data.'

def random_batch(self):

    idx = np.random.permutation(range(0, len(self.strokes)))[0:self.batch_size]
    return self._get_batch_from_indices(idx)
