Cody

Solution 1847988

Submitted on 12 Jun 2019 by Lily Sheets
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 = 2 4 9 6 3 10 8 7 5 1 vec = 8 2 7 3 9 6 1 5 10 4 vec = 10 9 7 1 6 3 8 5 4 2