I think this will come in handy one day for testing

This commit is contained in:
Jake Norbut authored and John Colvin committed 2018-08-15 19:29:21 -04:00
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);
}
}