shuffle_child is a function for array in python