Diffing "randperm" and "no_call_to_length"

Title: randperm no_call_to_length
Author: Alex Backer Mike Leventon
Submitted: 2003-11-04 10:26:12 UTC 2003-11-04 10:50:18 UTC
Status: Passed Passed
Score: 89.0 85.0
Result: pass pass
CPU Time: 0.26 0.271
Code:
c=[];
for i=1:length(b)
c = [c a(i)*ones(1,b(i))];
z=[a;b];
for v=z
c = [c v(1)*ones(1,v(2))];
end
while any(~(diff(c)))
c=c(randperm(sum(b)));
end