Cody

# Problem 44272. Generate one sample of uniform random numbers between -pi and +pi

Solution 1947694

Submitted on 24 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
w=0; for k=1:10^3 w=w+rndpi(1); end assert(w<1000)

Error in solution: Line: 2 Column: 20 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

2   Fail
w=0; for k=1:10^3 w=w+rndpi(1)^2; end assert(w>10^3)

Error in solution: Line: 2 Column: 20 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

3   Fail
w=0; for k=1:10^3 w=min(w,rndpi(1)); end assert(w<-pi*0.9) assert(w>-pi*1.1)

Error in solution: Line: 2 Column: 20 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.