I think this will come in handy one day for testing
This commit is contained in:
1 parent
34251795f2
commit
a232170d55
1 file changed
+3
@@ -14,6 +14,9 @@ namespace mbts.ui
|
||||
{
|
||||
return random.NextDouble() * (maxValue - minValue) + minValue;
|
||||
}
|
||||
public static bool NextBool(this Random random, int truePercentage = 50) {
|
||||
return random.NextDouble() < (truePercentage / 100.0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user