function out = toss()
 % toss returns 'T' or 'H' with pro = 0.5 each
 if rand() < 0.5 out = 'T';
 else out = 'H';
 end;