commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yair Zaslavsky (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-1272) Array shuffling
Date Sun, 13 Nov 2016 09:36:59 GMT

    [ https://issues.apache.org/jira/browse/LANG-1272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15661195#comment-15661195
] 

Yair Zaslavsky commented on LANG-1272:
--------------------------------------

Hi @Gilles,
Several questions here:
A. Why not use Collections.shuffle in the implementation?
B. I see that RandomUtils uses MathArrays that has a shuffle method for only array of ints,
IMHO that should support generic types + primitive types (as in other methods at ArrayUtils).


> Array shuffling
> ---------------
>
>                 Key: LANG-1272
>                 URL: https://issues.apache.org/jira/browse/LANG-1272
>             Project: Commons Lang
>          Issue Type: Improvement
>            Reporter: Emmanuel Bourg
>            Priority: Minor
>             Fix For: 3.6
>
>
> I'd like to suggest the addition of methods in ArrayUtils shuffling the content of an
array (Objects or primitives). This would be similar to the {{java.util.Collections.shuffle()}}
methods.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message