Cody

Solution 1948941

Submitted on 25 Sep 2019
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   Fail
x = 10; assert(length(randpro(x))==10) assert(std(randpro(x))>9) assert(std(randpro(x))<11)

y = 7.5549 2.7923 4.3552 9.3867 1.7995 1.3530 8.4334 1.9742 4.1899 3.8060 ans = 2.9008 y = 9.8475 2.2376 9.4163 1.8364 5.9517 8.2438 1.2247 6.9828 4.3911 5.6072 ans = 3.1216

Assertion failed.

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

y = 4.6662 15.5725 9.7609 13.4667 0.0703 11.6648 2.5781 15.5601 15.8567 11.3708 2.5010 14.4051 1.7602 8.3835 0.2183 15.2648 11.5194 ans = 5.8793 y = 16.6713 9.3555 3.0039 3.7791 10.7803 16.6673 14.1757 3.6828 3.4133 1.0795 12.8698 3.0376 0.6335 8.9531 10.4119 1.8944 1.7054 ans = 5.6083

Assertion failed.

Suggested Problems

More from this Author100