RNG Chance utils

This commit is contained in:
Daniel Mills committed 2020-10-31 08:29:59 -04:00
1 parent 11703afd6b
commit 98889780b9
1 file changed
+4
@@ -178,4 +178,8 @@ public class RNG extends Random
{
return si(Short.MIN_VALUE, Short.MAX_VALUE);
}
public boolean chance(double chance) {
return chance >= nextDouble();
}
}