Author: erans
Date: Sat Aug 10 21:42:39 2013
New Revision: 1512824
URL: http://svn.apache.org/r1512824
Log:
MATH-1010
Deleted obsolete method (replaced by "MathArrays.shuffle").
Modified:
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/RandomDataGenerator.java
Modified:
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/RandomDataGenerator.java
URL:
http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/RandomDataGenerator.java?rev=1512824&r1=1512823&r2=1512824&view=diff
==============================================================================
---
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/RandomDataGenerator.java
(original)
+++
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/RandomDataGenerator.java
Sat Aug 10 21:42:39 2013
@@ -790,28 +790,6 @@ public class RandomDataGenerator impleme
}
/**
- * Uses a 2-cycle permutation shuffle to randomly re-order the last
elements
- * of list.
- *
- * @param list list to be shuffled
- * @param end element past which shuffling begins
- */
- private void shuffle(int[] list, int end) {
- int target = 0;
- for (int i = list.length - 1; i >= end; i--) {
- if (i == 0) {
- target = 0;
- } else {
- // NumberIsTooLargeException cannot occur
- target = nextInt(0, i);
- }
- int temp = list[target];
- list[target] = list[i];
- list[i] = temp;
- }
- }
-
- /**
* Returns an array representing n.
*
* @param n the natural number to represent