import copy
import random


def pick_random_idx(idices, num, seed=0):    
    """
    Pop the "num" number of random samples from the sequence "indices"

    Args:
        idices (Sequence): 
        num (Int): The number to pop up the samples from the "idices" 
        seed(Int): Random seed
    Returns:
        remaining_sequences, pop-upped sequences 
    """
    shuffled_idx = copy.deepcopy(idices)
    random.Random(seed).shuffle(shuffled_idx)
    picked_idx = shuffled_idx[:num]
    remain_idx = shuffled_idx[num:]
    return remain_idx, picked_idx