I think this will come in handy one day for testing

This commit is contained in:
Jake Norbut committed 2018-08-14 15:58:03 -05:00
1 parent 197b6e85bd
commit 289f9259bb
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);
}
}