input: Write a function to randomize a list of given integers using an optimized Fisher-Yates algorithm. This function should take a list of integers as input and return the list in a randomized order.
  def randomized_list(num_list):
      for i in range(len(num_list)-1,0,-1):
          j = random.randint(0,i)
          num_list[i],num_list[j] = num_list[j],num_list[i]
      return num_list
  assert randomized_list([1, 2, 3, 4, 5]) != [1, 2, 3, 4, 5]
  assert randomized_list([10, 20, 30, 40, 50]) != [10, 20, 30, 40, 50]
  assert randomized_list([]) == []
  assert randomized_list([1]) == [1]
output: def randomized_list(num_list):
      for i in range(len(num_list)-1,0,-1):
          j = random.randint(0,i)
          num_list[i],num_list[j] = num_list[j],num_list[i]
      return num_list