MATH-1010

Make use of the RNG supplied as argument.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1512535 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gilles Sadowski 2013-08-09 23:39:24 +00:00
parent 63030b2b0a
commit 21f882885b
1 changed files with 2 additions and 2 deletions

View File

@ -1478,7 +1478,7 @@ public class MathArrays {
target = start;
} else {
// NumberIsTooLargeException cannot occur.
target = new UniformIntegerDistribution(start, i).sample();
target = new UniformIntegerDistribution(rng, start, i).sample();
}
final int temp = list[target];
list[target] = list[i];
@ -1493,7 +1493,7 @@ public class MathArrays {
target = start;
} else {
// NumberIsTooLargeException cannot occur.
target = new UniformIntegerDistribution(i, start).sample();
target = new UniformIntegerDistribution(rng, i, start).sample();
}
final int temp = list[target];
list[target] = list[i];