function row = chooserow(array)
%CHOOOSEROW - Chooses one of the rows and returns
%             the cell array of the chosen row.
[n, m] = size(array);
%random index
index = floor(1 + rand*(n));
%eliminate the case when rand is one
if (index == n +1) index = n;
end
%grab the row of the index
row = array(index,:);