Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 10;
flagSame = isequal(makeRandomOrdering(n), makeRandomOrdering(n));
flagAllUsed = isequal([1:n],sort(makeRandomOrdering(n)));
assert(~flagSame & flagAllUsed)
|
537 Solvers
613 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3622 Solvers
2464 Solvers
2874 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!