The first non-duplicate item in the list is chosen; if there are two identical items, one is chosen randomly. Perhaps this should be added to the rules somewhere, as there's already a question on this topic.
Если где-то чего-то убудет, то в другом месте добавится.
(Закон сохранения).