Pick(list);
It returns an element from the list, which was chosen by weights. If all the elements’ weight is the same (this is the default), than it is random. If there are no elements, than its 0.