function selection = select(array)
%SELECT - take a cell array, and randomly take
%one element from the cell arrray to output.
%random index
index = floor(1 + rand*(length(array)));
%eliminate the case when rand is one
if (index == length(array) +1) index = length(array);
end
selection = array(index);