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)
x =
1 2 3 4 5 6 7 8 9 10
x =
1 2 3 4 5 6 7 8 9 10
x =
1 2 3 4 5 6 7 8 9 10
|
17463 Solvers
829 Solvers
623 Solvers
381 Solvers
Reverse the elements of an array
687 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!