commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-1272) Array shuffling
Date Tue, 15 Nov 2016 16:31:58 GMT

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

Gilles commented on LANG-1272:
------------------------------

bq. A. Why not use Collections.shuffle in the implementation?
Because "Commons RNG" provides supposedly better algorithm then {{java.util.Random}}

bq. IMHO that should support generic types + primitive types

I've just committed sampling and shuffling for a generic list.
Comments welcome about the code currently in branch "RNG-30__sampling" (of "Commons RNG").


> 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