Correlated Lloyd model: Exact solution