Cody

Solution 1889688

Submitted on 1 Aug 2019 by Wiley Mosley
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)

ans = 10 1 3 7 6 2 9 5 4 8 ans = 9 5 4 7 6 10 3 8 2 1 ans = 7 5 4 2 3 8 10 6 1 9