MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / getRandom

Method getRandom

JSAT/src/jsat/utils/random/RandomUtil.java:71–77  ·  view source on GitHub ↗

Returns a new Random object that can be used. The Random object returned is promised to be a reasonably high quality PSRND with low memory overhead that is faster to sample from than the default Java Random. Essentially, it will be better than Java's default PRNG in every way. By d

()

Source from the content-addressed store, hash-verified

69 * @return a new random number generator to use.
70 */
71 public static synchronized Random getRandom()
72 {
73 int seed = DEFAULT_SEED;
74 if(INCREMENT_SEEDS)
75 DEFAULT_SEED += SEED_INCREMENT;
76 return new XORWOW(seed);
77 }
78
79 /**
80 * Returns a new Random object that can be used, initiated with the given

Callers 15

getSimpleKClassLinearMethod · 0.95
getCirclesMethod · 0.95
regressEvalLinearMethod · 0.95
testParseIntMethod · 0.95
testSubSetMethod · 0.95
setUpMethod · 0.95
setUpMethod · 0.95
testRandomMethod · 0.95
setUpMethod · 0.95
testSortDMethod · 0.95
testRandomMethod · 0.95
testSetMethod · 0.95

Calls

no outgoing calls

Tested by 15

getSimpleKClassLinearMethod · 0.76
getCirclesMethod · 0.76
regressEvalLinearMethod · 0.76
testParseIntMethod · 0.76
testSubSetMethod · 0.76
setUpMethod · 0.76
setUpMethod · 0.76
testRandomMethod · 0.76
setUpMethod · 0.76
testSortDMethod · 0.76
testRandomMethod · 0.76
testSetMethod · 0.76