Cody

Solution 1980696

Submitted on 17 Oct 2019 by David Scherrer
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

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 = 7 6 1 10 2 5 8 4 3 9 vec = 5 10 4 1 2 6 8 7 3 9 vec = 10 6 4 8 7 3 5 2 9 1