function k = dice()
% ƒTƒCƒRƒ�‚ÌƒVƒ~ƒ…ƒŒ�[ƒVƒ‡ƒ“
    x = rand;
    if x < 1/6.00        k = 1;
    elseif x < 2/6.00    k = 2;
    elseif x < 3/6.00    k = 3;
    elseif x < 4/6.00    k = 4;
    elseif x < 5/6.00    k = 5;
    else                 k = 6;
    end
end
