mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-17 14:21:33 +00:00
RNG Chance utils
This commit is contained in:
@@ -178,4 +178,8 @@ public class RNG extends Random
|
|||||||
{
|
{
|
||||||
return si(Short.MIN_VALUE, Short.MAX_VALUE);
|
return si(Short.MIN_VALUE, Short.MAX_VALUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean chance(double chance) {
|
||||||
|
return chance >= nextDouble();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user