Cody

Solution 1257742

Submitted on 26 Aug 2017 by Mehmet OZC
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
x = 10; assert(length(randpro(x))==10) assert(std(randpro(x))>9) assert(std(randpro(x))<11)

y = 18 13 12 -14 -6 -19 12 -9 5 10 13.0452 y = -6 0 -13 6 -1 -16 12 -1 19 13 11.3338 y = -11 -20 -6 5 -1 3 8 0 0 -9 8.4387 y = -14 19 -4 -7 -16 -8 14 -17 20 10 14.6291 y = -14 -3 -3 15 15 -15 3 -4 -19 -13 12.0167 y = -12 6 -14 14 -15 15 -18 -1 17 13 14.1520 y = 14 2 -2 -19 2 14 20 -9 8 9 11.7327 y = 14 2 -4 8 -17 10 7 7 16 -13 11.0655 y = 0 18 3 14 5 5 -12 -10 10 12 9.8008 y = -3 17 0 -10 14 -9 -7 4 -9 -15 10.6124 y = -12 0 17 -16 -1 12 -10 -19 13 -8 12.7819 y = 6 15 15 -13 13 -20 -14 20 19 -13 15.8871 y = -5 -20 5 -20 1 0 -19 14 -20 -18 12.7349 y = -1 4 2 1 20 13 -6 18 15 11 8.8450 y = 12 14 16 -3 7 17 15 -16 20 16 11.1535 y = 8 -5 15 17 -13 8 20 17 -12 -10 13.1930 y = 5 -17 3 -20 6 1 12 15 -5 -13 12.0467 y = 18 7 -4 1 -18 -3 -14 6 -4 -5 10.3837

2   Pass
x = 17; assert(length(randpro(x))==17) assert(std(randpro(x))>16) assert(std(randpro(x))<18)

y = 5 0 0 29 24 -11 -28 2 -11 30 -5 -27 -31 20 21 -16 -26 20.6551 y = 5 -34 -5 -27 -23 -17 18 -16 -34 -18 -15 33 16 -22 13 -4 -28 19.9492 y = 30 6 25 -29 -12 19 33 17 -10 28 -22 -11 30 21 4 -13 0 20.1688 y = -2 22 12 -18 -26 -31 19 -11 -19 3 -31 -7 -29 11 -18 -24 16 18.5951 y = -23 -3 5 -26 -3 29 -23 6 23 -21 14 20 -17 2 24 27 19 19.3871 y = -26 11 1 -11 -11 11 -34 10 23 -19 2 -27 22 -15 29 26 9 19.9169 y = -15 23 -27 31 -7 26 -31 -3 22 -28 -33 9 16 -23 -12 33 7 23.2319 y = -2 20 -11 13 -31 28 -4 -14 34 11 26 1 26 -29 4 -14 -30 21.1953 y = -8 -24 -23 -19 10 31 24 -20 -32 29 23 9 -24 25 17 24 -18 22.9103 y = 5 -5 -9 13 -19 -34 -17 3 -3 9 9 -33 12 -12 -1 -22 13 15.4715 y = 2 29 19 -11 -20 8 22 -17 -34 -14 15 7 23 -18 24 12 0 18.7634 y = 31 -1 12 9 -11 -23 26 -28 -28 -2 -34 18 1 14 -19 6 -28 20.5425 y = -23 4 -5 -2 -15 25 21 -24 -13 6 -27 26 -1 26 -34 16 -31 20.8387 y = 15 8 5 14 -29 28 -28 -11 21 -33 32 11 24 -24 9 -28 10 22.0767 y = 34 25 28 -8 -22 16 -4 -21 -24 11 8 -26 -19 -20 24 -7 -20 20.9348 y = -21 -30 -3 24 5 -11 -21 29 -2 17 -4 -16 10 17 -6 7 -9 16.7004 y = -26 34 -25 28 9 -19 -5 -21 -30 -19 -31 -23 11 -27 32 33 -3 24.3368 y = -1 8 -1 18 -27 -32 -34 9 5 -25 4 23 17 -17 14 30 -19 20.2544 y = 24 -28 -29 34 15 26 28 9 -16 0 -2 -31 8 7 10 -3 -5 20.0952 y = 21 -34 -3 31 27 -22 34 23 -13 18 -15 -24 30 23 28 10 -22 23.4762 y = 21 -20 -30 23 23 -33 33 1 31 -9 7 -26 14 -33 -6 31 6 23.7157 y = -9 22 12 5 14 -6 -23 32 15 34 -18 -11 2 17 -2 -1 25 16.9224 y = -14 0 -19 -23 17 -14 -25 -6 13 -21 13 27 -8 -31 -16 -5 -9 16.3282