use of org.apache.commons.math3.random.Well19937c in project repseqio by repseqio.
the class ExportCloneSequencesActionTest method randomRoundTest.
@Test
public void randomRoundTest() throws Exception {
double value = 12.34;
double sum = 0.0;
RandomGenerator random = new Well19937c(1232434);
for (int i = 0; i < 100000; i++) sum += ExportCloneSequencesAction.randomizedRound(value, random);
assertEquals(value, sum / 100000, 0.1);
}
use of org.apache.commons.math3.random.Well19937c in project cloudsim-plus by manoelcampos.
the class SortedSetVsLinkedList method doSetup.
@Setup(Level.Iteration)
public void doSetup() {
sortedSet = new TreeSet<>();
linkedList = new LinkedList<>();
prng = new Well19937c();
serial = 0;
time = 0;
maxTime = 0;
}
Aggregations