function x = dice
die1 = rand(1,1);
if (die1 < 0.166667);
    x(1) = 1;
elseif (die1 < 0.333333)
    x(1) = 2;
elseif (die1 < 0.5)
    x(1) = 3;
elseif (die1 < 0.6666667)
    x(1) = 4;
elseif (die1 < 0.8333333)
    x(1) = 5;
else
    x(1) = 6;
end
die2 = rand(1,1);
if (die2 < 0.166667)
    x(2) = 1;
elseif (die2 < 0.333333)
    x(2) = 2;
elseif (die2 < 0.5)
    x(2) = 3;
elseif (die2 < 0.6666667)
    x(2) = 4;
elseif (die2 < 0.8333333)
    x(2) = 5;
else
    x(2) = 6;
end
x;
    