MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Opportunities for recent engineering grads.
Problem 1713. Can you beat the lottery?
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
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;