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)
vec =
1 8 9 5 6 7 2 10 4 3
vec =
5 6 4 9 1 8 7 3 2 10
vec =
9 10 4 8 6 3 7 2 1 5
|
746 Solvers
390 Solvers
309 Solvers
282 Solvers
264 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!