# Random matrix with density.

I have a little question of comprehension

```
random_matrix(ZZ, 5, 4, x=0,y=11, density = 0.33)
```

generate a result like

```
[0 6 0 0]
[0 5 0 0]
[5 0 0 0]
[0 0 0 4]
```

but this gives 5 non zero enters which correspond, as I undeerstand it, to a density of 5/25 which is very far from .33 ?
As always I suppose I have not clearly understood the meaning of `density`

.

Should somebody explain this ?