echo on
rand('state',sum(100*clock))
B=rand;  % Brian B.
S=rand;  % Sam B.
T=rand;  % Toh K.C.
[y,i]=sort([B S T])
if i(1)==1,
  disp('winner is Brian');
elseif i(1)==2,
  disp('winner is Sam');
elseif i(1)==3,
  disp('winner is Toh');
end
echo off
