mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-13 23:26:07 +09:00
more rock band experiments
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user