
org.riversun.ml.fakedatamaker.MyMath Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fake-data-maker Show documentation
Show all versions of fake-data-maker Show documentation
Generate fake data for regression analysis
The newest version!
package org.riversun.ml.fakedatamaker;
import java.util.Random;
public class MyMath {
private static long sSeed = 0;
private static Random sRandom = null;
public static void setSeed(long seed) {
sSeed = seed;
sRandom = new Random(sSeed);
}
public static double random() {
if (sRandom == null) {
sRandom = new Random();
}
return sRandom.nextDouble();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy