more rock band experiments

This commit is contained in:
minjaesong
2023-11-15 15:28:20 +09:00
parent e66c7f5002
commit 7e8e7ab7bf
2 changed files with 13 additions and 8 deletions

View File

@@ -198,6 +198,12 @@ public class HQRNG extends Random {
return (nextDouble() + nextDouble()) / 2.0;
}
/**
* Returns a random value whose probability is distributed in triangular manner, of which 0.0 is the most and -1.0 and 1.0 are the least likely.
*/
public double nextTriangularBal() {
return (nextDouble() + nextDouble()) - 1.0;
}
/**
* Returns a random value whose probability is distributed in triangular manner, of which 0.0 is the most and 1.0 is the least likely.
*/