python's random.shuffle
shuffle all or random no of elements? In present scenario only want to shuffle fixed number of elements as shown below
inp_list = [1,2,3,4,5,6,7,8,9]
# shuffle any 2 elements
op_list_1 = [1,2,3,4,9,6,7,8,5]
# shuffle any 4 element
op_list_4 = [8,2,5,4,3,6,7,1,9]