Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4C4CA10657 for ; Sat, 10 Aug 2013 21:43:02 +0000 (UTC) Received: (qmail 8399 invoked by uid 500); 10 Aug 2013 21:43:02 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 8330 invoked by uid 500); 10 Aug 2013 21:43:01 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 8323 invoked by uid 99); 10 Aug 2013 21:43:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Aug 2013 21:43:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Aug 2013 21:43:00 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 2D8E5238888A; Sat, 10 Aug 2013 21:42:40 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1512824 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/RandomDataGenerator.java Date: Sat, 10 Aug 2013 21:42:40 -0000 To: commits@commons.apache.org From: erans@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130810214240.2D8E5238888A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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