function k = dice_false()
    persistent prev;
    if isempty(prev)
        k = ceil(6*rand);
        prev = k;
    else
        p = [1:prev-1,prev+1:6];
        k = p(ceil(5*rand));
        prev = k;
    end
end
