v2.4.0: added two more trinkets

This commit is contained in:
Evan Debenham
2024-04-04 17:13:06 -04:00
parent 36d40650e3
commit 28e1c18694
9 changed files with 207 additions and 7 deletions

View File

@@ -121,7 +121,7 @@ public class Random {
//returns an inverse triangularly distributed int in the range [min, max]
//this makes results more likely as they get further from the middle of the range
public static int InvNormalIntRange( int min, int max){
public static int InvNormalIntRange( int min, int max ){
float roll1 = Float(), roll2 = Float();
if (Math.abs(roll1-0.5f) >= Math.abs(roll2-0.5f)){
return min + (int)(roll1*(max - min + 1));