- #1

freezer

- 76

- 0

## Homework Statement

Generate 100 data points from a continuous uniform distribution with mean = 10 and variance = 4

## Homework Equations

u = (a+b)/2

var = (b-a)^2 / 12

r = a + (b-a).*rand(100,1);

## The Attempt at a Solution

Code:

```
points = 100
m1 = 10
v1 = 4
syms a b
[a, b] = solve( (a+b) == 2*m1,(b-a)^2 == 12 *v1)
r = a + (b-a).*rand(points, 1);
```