function pick = PickDiploid(ayeast)

population = sum(sum(ayeast));
random = randperm(population);
random = random(1);

count = 0;
for i = 1:5
    for j = 1:5
        if ayeast(i, j) > 0
            for a = 1:ayeast(i, j)
                count = count + 1;
                if count == random && ayeast(i, j) ~= 0
                    pick = [i j 0];

                end
            end
        end
    end
end