Cody

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

Solution 1463454

Submitted on 15 Mar 2018 by David Verrelli
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 = 0 0 0 0 0 0 0 0 0 31.6228 s = 10 y = 0 0 0 0 0 0 0 0 0 31.6228 s = 10 y = 0 0 0 0 0 0 0 0 0 31.6228 s = 10

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

y = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 70.0928 s = 17 y = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 70.0928 s = 17 y = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 70.0928 s = 17