Simulating random variables in a block EQUATION