Cody

Solution 282336

Submitted on 15 Jul 2013 by Michael C.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
%% check = 1; while check == 1 D1 = round(rand(1,1)*4+1); D2 = round(rand(1,1)*4+1); D3 = round(rand(1,1)*4+1); draw = sort([D1 D2 D3]); if size(unique(draw), 2) == 3 check = 0; end end assert(isequal(sort(lottery()),draw))

[Warning: Function /users/msssystem7/assert.m has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In lottery at 5 In verifyCode>evaluateCode at 227 In verifyCode at 40 In fevalJSON at 14]