def choice(num, total):
    return np.random.permutation(total)[:num]
Returns indecies to (total) randomly selected items out of (num) without replacement.
dataset/ETHPy150Open bbabenko/simple_convnet/simple_convnet/helpers.py/choice