TransactionPolicyExpressionFunctions.Random Method |
Namespace: PostSharp.Patterns.Diagnostics.Transactions.Model
Assembly: PostSharp.Patterns.Diagnostics.Configuration (in PostSharp.Patterns.Diagnostics.Configuration.dll) Version: 6.9.11.0 (6.9.11.0)
public static bool Random( double threshold )
Parameters
- threshold
- Type: System.Double
Returns true with this probability. For example, if threshold is 0.54, then this method returns true with probability 54%.
Return Value
Type: BooleanThis function is only available in the Sample expression.