Test  Status  Code Input and Output 

1  Pass 
assessFunctionAbsence({'rng', 'RandStream'}, 'FileName','myGuess.m')

2  Pass 
for j = 1 : 1000
numberToBeGuessed = randi(10);
gOO = randperm(10, 2);
mG = myGuess(gOO);
assert( mG >= 1 & mG <= 10 , 'Out of requested range.' )
u = unique( floor([gOO mG]) );
assert( length(u) == 3 , 'Your guess must not have been already chosen.' )
end;
y =
6
y =
4
y =
4
y =
6
y =
6
y =
6
y =
8
y =
7
y =
8
by =
6.5000
y =
7
by =
5.5000
y =
6
y =
7
y =
3
y =
4
by =
6.5000
y =
7
y =
4
y =
5
y =
5
y =
7
y =
7
y =
7
by =
6.5000
y =
7
y =
4
by =
5.5000
y =
6
y =
3
by =
6.5000
y =
7
by =
4.5000
y =
5
y =
4
y =
4
y =
5
by =
5.5000
y =
6
y =
6
y =
3
y =
6
y =
7
by =
4.5000
y =
5
y =
5
y =
5
y =
6
y =
6
y =
4
y =
8
by =
5
y =
5
y =
4
y =
6
y =
6
y =
4
y =
7
y =
4
y =
4
y =
5
y =
3
by =
4.5000
y =
5
by =
7
y =
7
y =
7
y =
5
y =
6
by =
5
y =
5
by =
6
y =
6
y =
7
y =
7
y =
7
by =
4
y =
4
by =
4.5000
y =
5
by =
5
y =
5
y =
7
y =
3
y =
4
y =
4
by =
5
y =
5
by =
5.5000
y =
6
y =
7
y =
5
y =
6
by =
4.5000
y =
5
y =
4
by =
4
y =
4
y =
5
by =
6.5000
y =
7
y =
7
y =
7
y =
4
y =
4
y =
7
y =
4
y =
3
by =
4
y =
4
by =
6.5000
y =
7
y =
6
y =
6
y =
6
y =
5
y =
4
y =
4
y =
7
y =
3
y =
6
y =
4
y =
3
by =
5.5000
y =
6
y =
7
y =
6
y =
5
by =
5
y =
5
by =
5.5000
y =
6
y =
5
y =
4
y =
4
y =
6
y =
4
y =
6
y =
3
y =
5
y =
5
y =
5
by =
7
y =
7
y =
3
y =
4
y =
8
y =
7
by =
5.5000
y =
6
by =
7
y =
7
by =
4
y =
4
y =
6
by =
6
y =
6
y =
4
y =
7
y =
5
y =
5
y =
4
y =
4
y =
4
by =
4
y =
4
y =
3
by =
4
y =
4
y =
7
y =
7
y =
7
y =
5
by =
6.5000
y =
7
y =
4
y =
6
by =
5.5000
y =
6
by =
4
y =
4
by =
7
y =
7
y =
7
y =
6
y =
6
y =
4
y =
4
y =
5
y =
7
y =
6
y =
8
y =
6
y =
6
y =
5
y =
4
y =
7
by =
6
y =
6
y =
7
y =
3
y =
4
y =
5
y =
4
y =
4
y =
7
by =
6
y =
6
by =
4.5000
y =
5
y =
3
y =
4
y =
6
y =
4
by =
5
y =
5
by =
7
y =
7
y =
6
y =
4
y =
7
y =
3
y =
8
by =
5.5000
y =
6
y =
4
by =
4
y =
4
y =
5
y =
5
y =
5
y =
8
y =
7
y =
4
y =
6
by =
7
y =
7
y =
4
by =
6
y =
6
y =
5
y =
5
by =
5.5000
y =
6
y =
3
y =
7
by =
5.5000
y =
6
y =
5
by =
4
y =
4
y =
5
y =
3
y =
5
y =
5
y =
4
y =
4
y =
8
y =
3
y =
7
y =
8
y =
3
y =
7
by =
5.5000
y =
6
y =
4
y =
4
by =
7
y =
7
y =
6
y =
8
by =
5
y =
5
y =
6
y =
5
y =
5
y =
4
y =
7
y =
4
y =
4
y =
5
y =
4
y =
5
y =
5
y =
5
by =
5.5000
y =
6
y =
4
y =
5
y =
6
y =
4
y =
7
y =
6
y =
3
y =
6
by =
5
y =
5
y =
5
by =
6
y =
6
by =
5
y =
5
y =
7
y =
7
y =
5
y =
5
y =
7
y =
7
by =
5.5000
y =
6
y =
4
by =
5.5000
y =
6
y =
4
y =
7
y =
5
y =
7
y =
6
by =
6
y =
6
y =
8
y =
4
y =
6
y =
7
y =
4
y =
6
by =
5.5000
y =
6
y =
4
y =
4
by =
6
y =
6
y =
3
y =
5
y =
6
y =
7
y =
7
y =
8
y =
8
y =
4
y =
4
by =
7
y =
7
y =
8
y =
4
y =
3
y =
7
y =
6
y =
6
y =
3
y =
6
y =
3
y =
4
y =
3
by =
6.5000
y =
7
y =
4
y =
3
y =
5
y =
7
y =
6
y =
7
by =
6
y =
6
y =
5
y =
4
y =
3
by =
5
y =
5
y =
3
y =
6
by =
7
y =
7
by =
6.5000
y =
7
y =
8
y =
7
y =
7
y =
4
y =
7
y =
6
y =
3
y =
6
y =
8
by =
5.5000
y =
6
y =
5
by =
5.5000
y =
6
by =
5
y =
5
y =
4
y =
7
by =
4
y =
4
y =
8
y =
5
by =
6.5000
y =
7
by =
4
y =
4
by =
5
y =
5
by =
6
y =
6
y =
5
y =
6
y =
6
y =
7
y =
7
by =
4
y =
4
by =
5
y =
5
y =
7
y =
6
y =
5
y =
5
y =
5
y =
5
y =
6
y =
8
by =
5.5000
y =
6
y =
4
by =
6
y =
6
y =
6
by =
6
y =
6
y =
3
y =
7
y =
6
y =
4
y =
6
y =
5
by =
6
y =
6
y =
5
y =
5
y =
4
y =
7
y =
5
y =
6
y =
7
y =
5
by =
5
y =
5
by =
6.5000
y =
7
y =
7
by =
5.5000
y =
6
y =
8
y =
5
by =
5
y =
5
y =
5
y =
3
by =
4
y =
4
y =
5
y =
5
y =
4
y =
8
by =
5
y =
5
y =
7
y =
7
y =
4
by =
7
y =
7
y =
4
y =
5
by =
6
y =
6
y =
5
y =
8
y =
7
y =
4
y =
4
y =
5
y =
6
y =
7
y =
4
y =
6
by =
4
y =
4
y =
4
y =
7
y =
4
y =
7
y =
5
y =
5
y =
3
y =
6
by =
4.5000
y =
5
y =
7
by =
7
y =
7
y =
6
y =
4
y =
4
by =
6.5000
y =
7
y =
5
y =
4
y =
7
y =
3
y =
6
by =
5
y =
5
y =
7
y =
4
y =
7
by =
5.5000
y =
6
y =
4
y =
7
by =
4
y =
4
y =
5
y =
3
by =
6.5000
y =
7
y =
4
y =
6
y =
6
y =
6
by =
5.5000
y =
6
y =
6
y =
5
y =
7
y =
4
y =
7
y =
7
y =
7
y =
6
y =
4
y =
5
y =
6
y =
5
y =
8
y =
4
y =
5
by =
6.5000
y =
7
y =
7
y =
6
y =
7
y =
4
y =
3
by =
4.5000
y =
5
y =
4
y =
6
y =
4
y =
5
by =
4.5000
y =
5
y =
8
y =
4
by =
5.5000
y =
6
y =
4
y =
7
y =
4
y =
3
y =
4
y =
4
y =
3
by =
4.5000
y =
5
by =
4.5000
y =
5
y =
5
y =
4
by =
5.5000
y =
6
y =
8
by =
5
y =
5
by =
5
y =
5
y =
8
by =
5.5000
y =
6
y =
6
y =
4
y =
5
y =
5
y =
7
y =
6
by =
5.5000
y =
6
by =
6
y =
6
y =
8
y =
5
by =
6
y =
6
y =
5
y =
5
y =
5
y =
3
by =
7
y =
7
y =
3
y =
4
y =
4
y =
5
y =
4
y =
8
y =
8
by =
4.5000
y =
5
by =
4.5000
y =
5
y =
6
by =
6.5000
y =
7
y =
4
y =
7
y =
4
y =
6
y =
7
y =
6
by =
5.5000
y =
6
by =
5.5000
y =
6
y =
5
y =
8
y =
5
by =
4
y =
4
y =
8
by =
4
y =
4
y =
3
y =
5
by =
6
y =
6
y =
8
y =
3
y =
5
y =
3
y =
6
by =
5.5000
y =
6
y =
7
by =
5.5000
y =
6
y =
7
by =
7
y =
7
y =
4
y =
4
y =
8
y =
4
y =
6
y =
7
y =
3
y =
6
y =
7
y =
5
y =
4
y =
4
y =
5
y =
8
by =
7
y =
7
y =
4
y =
4
y =
5
y =
4
y =
5
y =
5
by =
5.5000
y =
6
y =
3
y =
4
y =
6
y =
5
y =
6
by =
5.5000
y...

3  Pass 
maxIts = 100000;
tic
for j = 1 : 10
WDL = [0 0 0];
for itn = 1 : maxIts
numberToBeGuessed = randi(10);
gOO = randperm(10, 2);
diffs = abs( [gOO myGuess(gOO)]  numberToBeGuessed );
winningContestant = find( min(diffs)==diffs );
if any( winningContestant == 3 ),
if length(winningContestant) == 1,
% Win
WDL(1) = WDL(1) + 1;
else
% Draw
WDL(2) = WDL(2) + 1;
end;
else
% Loss
WDL(3) = WDL(3) + 1;
end;
end;
successRate = (WDL(1) + WDL(2)/2) / maxIts
assert( successRate >= 0.45 )
end;
toc
y =
5
y =
8
by =
5.5000
y =
6
y =
3
y =
8
y =
4
y =
6
y =
4
by =
5
y =
5
y =
4
y =
5
y =
7
y =
4
y =
8
by =
5.5000
y =
6
y =
6
y =
5
by =
5
y =
5
y =
3
y =
4
by =
6
y =
6
y =
5
by =
4
y =
4
y =
6
by =
6
y =
6
y =
7
by =
6.5000
y =
7
y =
5
y =
3
by =
4.5000
y =
5
y =
3
by =
5
y =
5
y =
5
y =
5
y =
7
y =
6
by =
6
y =
6
by =
5
y =
5
y =
8
y =
7
y =
7
by =
6.5000
y =
7
y =
4
y =
4
y =
7
y =
4
y =
6
y =
5
y =
6
y =
3
y =
5
y =
4
y =
6
y =
3
y =
7
y =
5
by =
5.5000
y =
6
y =
7
y =
3
y =
6
y =
4
by =
6
y =
6
y =
5
y =
8
y =
7
y =
5
y =
6
y =
7
by =
5
y =
5
y =
4
y =
5
by =
7
y =
7
y =
4
y =
7
y =
5
y =
5
y =
4
y =
7
y =
3
y =
8
by =
5
y =
5
by =
5.5000
y =
6
y =
5
by =
5.5000
y =
6
by =
6.5000
y =
7
y =
8
by =
4.5000
y =
5
y =
4
y =
6
y =
5
y =
3
y =
4
y =
4
y =
7
y =
5
y =
3
y =
4
y =
5
by =
7
y =
7
by =
7
y =
7
y =
6
y =
4
y =
3
by =
6
y =
6
y =
6
y =
7
by =
5
y =
5
y =
7
y =
7
y =
4
y =
5
y =
5
by =
4
y =
4
by =
5.5000
y =
6
by =
7
y =
7
y =
5
by =
6.5000
y =
7
y =
5
y =
5
by =
6
y =
6
y =
4
y =
3
y =
4
y =
7
y =
7
by =
6
y =
6
y =
3
y =
3
by =
5
y =
5
y =
6
y =
3
by =
6
y =
6
y =
6
y =
3
y =
5
y =
6
y =
7
y =
7
y =
4
by =
5.5000
y =
6
y =
7
y =
6
y =
4
y =
5
y =
6
y =
7
y =
5
y =
3
y =
6
y =
7
by =
5.5000
y =
6
y =
6
y =
8
y =
4
y =
5
y =
5
y =
5
y =
3
y =
7
y =
4
y =
7
by =
5.5000
y =
6
y =
5
y =
5
y =
5
y =
3
y =
7
y =
3
by =
4
y =
4
y =
8
y =
5
by =
5
y =
5
y =
7
y =
4
y =
3
y =
6
y =
4
y =
6
y =
4
y =
6
y =
7
y =
5
by =
7
y =
7
by =
4
y =
4
by =
4.5000
y =
5
by =
6
y =
6
y =
6
y =
6
y =
5
y =
6
by =
5
y =
5
by =
5
y =
5
y =
4
y =
3
by =
5.5000
y =
6
y =
4
y =
7
by =
5.5000
y =
6
y =
7
by =
4
y =
4
by =
4.5000
y =
5
y =
5
by =
7
y =
7
by =
5.5000
y =
6
y =
3
y =
8
by =
4
y =
4
by =
7
y =
7
y =
7
by =
7
y =
7
y =
3
by =
4.5000
y =
5
y =
8
y =
5
by =
6
y =
6
y =
4
y =
3
y =
4
y =
6
y =
4
y =
5
y =
5
y =
4
y =
5
y =
4
y =
7
y =
5
y =
6
y =
7
y =
6
y =
4
by =
5
y =
5
y =
6
y =
4
by =
6.5000
y =
7
by =
5.5000
y =
6
y =
3
by =
7
y =
7
y =
5
y =
7
y =
8
y =
5
by =
6
y =
6
y =
8
y =
4
by =
5
y =
5
y =
5
by =
6
y =
6
y =
5
y =
4
by =
4.5000
y =
5
y =
6
y =
4
y =
4
y =
8
y =
4
by =
5.5000
y =
6
y =
3
y =
6
y =
7
y =
7
y =
3
y =
4
y =
4
y =
7
y =
4
by =
6.5000
y =
7
y =
5
y =
5
y =
7
y =
5
y =
6
by =
5.5000
y =
6
y =
8
y =
4
y =
7
by =
7
y =
7
y =
3
y =
5
y =
3
y =
7
by =
5.5000
y =
6
by =
4.5000
y =
5
y =
8
by =
6
y =
6
y =
3
y =
4
by =
5.5000
y =
6
y =
7
y =
4
by =
6
y =
6
by =
5.5000
y =
6
y =
4
y =
4
y =
5
y =
3
by =
6
y =
6
y =
5
y =
7
y =
3
by =
5.5000
y =
6
y =
3
y =
5
by =
5
y =
5
by =
5.5000
y =
6
by =
5
y =
5
by =
5.5000
y =
6
y =
4
y =
5
by =
4
y =
4
y =
8
y =
7
y =
6
y =
5
y =
6
y =
6
y =
6
y =
5
y =
5
y =
3
y =
5
y =
8
y =
6
y =
7
y =
7
y =
5
y =
5
by =
5.5000
y =
6
y =
4
y =
4
y =
7
by =
5.5000
y =
6
y =
7
by =
4.5000
y =
5
y =
3
y =
6
y =
5
y =
6
y =
6
y =
8
y =
7
by =
5
y =
5
by =
5.5000
y =
6
y =
7
by =
5.5000
y =
6
y =
5
y =
3
by =
6
y =
6
by =
4.5000
y =
5
y =
5
y =
8
y =
4
y =
3
by =
5
y =
5
y =
6
by =
7
y =
7
y =
5
y =
6
y =
3
by =
6
y =
6
y =
3
y =
4
y =
4
by =
6
y =
6
by =
6
y =
6
by =
4
y =
4
y =
5
y =
6
by =
6.5000
y =
7
y =
7
y =
4
by =
4
y =
4
y =
6
y =
6
y =
6
y =
5
y =
6
y =
4
y =
4
y =
3
y =
6
y =
7
y =
6
y =
4
y =
7
y =
8
y =
6
y =
6
by =
5
y =
5
y =
6
y =
4
y =
4
y =
8
y =
7
y =
8
y =
8
y =
5
by =
4
y =
4
by =
4.5000
y =
5
y =
7
y =
5
by =
4.5000
y =
5
y =
4
y =
3
y =
5
y =
6
y =
7
y =
3
y =
7
y =
5
y =
6
y =
4
y =
3
y =
8
y =
5
y =
6
y =
3
y =
6
by =
5
y =
5
by =
6
y =
6
y =
4
by =
5
y =
5
y =
6
y =
6
y =
4
y =
4
by =
5.5000
y =
6
y =
6
y =
5
y =
5
y =
4
by =
6
y =
6
by =
5.5000
y =
6
y =
4
by =
4
y =
4
y =
4
by =
7
y =
7
y =
7
y =
6
y =
8
y =
3
y =
6
y =
5
y =
5
by =
6
y =
6
y =
5
y =
5
y =
3
by =
4
y =
4
y =
4
y =
6
y =
7
y =
7
y =
6
by =
5
y =
5
y =
6
y =
6
y =
4
y =
3
y =
6
y =
5
y =
6
y =
4
y =
6
y =
6
y =
8
y =
6
y =
7
y =
7
y =
4
y =
7
y =
4
by =
6.5000
y =
7
y =
7
y =
6
y =
5
y =
5
y =
6
by =
4
y =
4
y =
8
y =
3
y =
4
y =
8
y =
8
y =
6
by =
6.5000
y =
7
y =
4
y =
6
y =
4
y =
6
y =
7
by =
6
y =
6
y =
5
y =
4
y =
4
y =
5
by =
4
y =
4
by =
5.5000
y =
6
y =
6
y =
7
y =
4
by =
5
y =
5
by =
4.5000
y =
5
y =
7
by =
7
y =
7
y =
7
y =
5
y =
3
y =
8
y =
6
y =
6
y =
4
y =
6
y =
7
y =
6
y =
5
y =
3
y =
4
y =
7
by =
5.5000
y =
6
by =
5.5000
y =
6
by =
4.5000
y =
5
y =
4
y =
6
by =
7
y =
7
by =
6
y =
6
by =
6.5000
y =
7
y =
7
y =
5
y =
4
by =
4
y =
4
y =
4
y =
6
y =
7
y =
5
y =
3
by =
6.5000
y =
7
by =
7
y =
7
y =
5
by =
6
y =
6
y =
6
y =
5
y =
4
y =
7
y =
4
y =
5
y =
5
y =
4
y =
5
y =
3
y =
4
y =
7
y =
4
y =
5
y =
4
y =
8
y =
7
by =
5
y =
...

1678 Solvers
448 Solvers
Determine the number of odd integers in a vector
347 Solvers
224 Solvers
201 Solvers