https://123dok.net/document/yj7rlle2-array-simulates-dependent-realizations-markov-distribution-states-discrepancy.html