extremeBenchmark
This commit is contained in:
1 parent
657acc3c6e
commit
05ac5dee2c
15 files changed
+307
-25
No files matched your search
@@ -0,0 +1,18 @@
|
||||
package carpet.utils;
|
||||
|
||||
import carpet.CarpetSettings;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class RandomTools
|
||||
{
|
||||
public static double nextGauBian(Random random)
|
||||
{
|
||||
if (CarpetSettings.extremeBehaviours)
|
||||
{
|
||||
random.nextDouble();
|
||||
return 16.0D * random.nextDouble() - 8.0D;
|
||||
}
|
||||
return random.nextGaussian();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user