% File: cut.m
% Author: Corey Hebert
% Purpose: determine a random cut card given the cards already dealt
%
% Input: hands  (52 element column array representing cards already dealt)
% Output: card  (52 element column array representing the cut card)

function card = cut(hands)

a = 1;

while (a > 0)
    card = crossvalind('Holdout', 52, 0.99);  % select 1 of 52
    base = card .* hands;
    
    if (base < 1)
        a = 0;
    end
end
