commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Duncan Jones (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-1272) Array shuffling
Date Thu, 24 Nov 2016 21:50:59 GMT

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

Duncan Jones commented on LANG-1272:
------------------------------------

I think there is no harm in having two variations in different components, which serve different
needs.

The RNG implementation would be for people seeking faster or better randomisation for their
shuffling. The Lang implementation would use Java's {{Random}} class and err on the side of
simplicity.

I think both can coexist, what do you think?

> 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