Cody

Solution 1717358

Submitted on 30 Jan 2019 by Pablo López
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 = 2 9 5 1 10 4 6 3 8 7 ans = 1 6 10 3 4 2 9 8 5 7 ans = 6 9 4 10 8 1 5 3 2 7