Cody

# Problem 44277. Given n, create n random numbers such that their standard deviation is also n.

Solution 1883518

Submitted on 25 Jul 2019 by HH
• Size: 7
• This is the leading solution.
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)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In randpro (line 2) In ScoringEngineTestPoint1 (line 2) In solutionTest (line 3)] [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In randpro (line 2) In ScoringEngineTestPoint1 (line 3) In solutionTest (line 3)] [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In randpro (line 2) In ScoringEngineTestPoint1 (line 4) In solutionTest (line 3)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In randpro (line 2) In ScoringEngineTestPoint2 (line 2) In solutionTest (line 5)] [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In randpro (line 2) In ScoringEngineTestPoint2 (line 3) In solutionTest (line 5)] [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In randpro (line 2) In ScoringEngineTestPoint2 (line 4) In solutionTest (line 5)]