Why not "s.State(end)=0;" instead of "s.State(end)=s.State(end)-s.State(end);"?
At that time, I didn't understand the stream correctly...
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
rng('shuffle');
number1=randi([10,20]);
for j=1:number1
round(rand(1,1));
end
assert(isequal(big_lottery(),number1))
|
2 | Pass |
%%
rng('shuffle');
number2=randi([10,20]);
for j=1:number2
round(rand(1,1));
end
assert(isequal(big_lottery(),number2))
|
3 | Pass |
%%
rng('shuffle');
number3=randi([10,20]);
for j=1:number3
round(rand(1,1));
end
assert(isequal(big_lottery(),number3))
|
1208 Solvers
Back to basics 16 - byte order
149 Solvers
157 Solvers
479 Solvers
poll: would you like the regexp (?@cmd) functionality to be banned in Cody?
147 Solvers