Commit 7029feee authored by Lambert Patrick's avatar Lambert Patrick
Browse files

attempt to sped up

parent b20c8884
......@@ -22,9 +22,10 @@ public class Miscellaneous {
}
} else {
UniformGen aleaGen = new UniformGen(pilot.getRandomStream(), 0., 1.);
amountWithSuccess = 0;
for (long i = 0; i < amount; i++) {
if (UniformGen.nextDouble(pilot.getRandomStream(), 0, 1) < succesProba) {
if (aleaGen.nextDouble() < succesProba) {
amountWithSuccess++;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment