# ConsistencyTransactionTestRunner.RandomizedConsistency(int, int, bool, bool, ReadWriteDetermination)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleans.transactions.testkit.consistencytransactiontestrunner/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleans.transactions.testkit.consistencytransactiontestrunner/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions.TestKit.Base/TestRunners/ConsistencyTransactionTestRunner.cs#L21-L53)

```csharp
public virtual Task RandomizedConsistency(int numGrains, int scale, bool avoidDeadlocks, bool avoidTimeouts, ReadWriteDetermination readwrite)
```

### Parameters

- `numGrains` (`int`)
- `scale` (`int`)
- `avoidDeadlocks` (`bool`)
- `avoidTimeouts` (`bool`)
- `readwrite` (`ReadWriteDetermination`)
