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:
parent
63030b2b0a
commit
21f882885b
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue