Ensuring the random list contains only elements from the initial list.