Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
SimAquaLife
GR3D
Commits
7029feee
Commit
7029feee
authored
Mar 31, 2020
by
Lambert Patrick
Browse files
attempt to sped up
parent
b20c8884
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/miscellaneous/Miscellaneous.java
View file @
7029feee
...
...
@@ -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
(
Uniform
Gen
.
nextDouble
(
pilot
.
getRandomStream
(),
0
,
1
)
<
succesProba
)
{
if
(
alea
Gen
.
nextDouble
()
<
succesProba
)
{
amountWithSuccess
++;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment