I would rather keep the ArrayUtils.shuffle() methods not deprecated, and
mention RNG in the Javadoc for more advanced usages. Adding a 100KB
dependency just to shuffle an array isn't optimal.
Emmanuel Bourg
Le 06/12/2022 à 21:40, Gary Gregory a écrit :
I am ok with both LANG and TEXT
I am ok with both LANG and TEXT deprecating to RNG.
Gary
On Tue, Dec 6, 2022, 13:21 Alex Herbert wrote:
> On Tue, 6 Dec 2022 at 17:22, Gary Gregory wrote:
> >
> > I agree this should be in rng.
> >
> > Does rng duplicate all of the lang APIs such that we can deprecate the
> lang
> > methods?
On Tue, 6 Dec 2022 at 17:22, Gary Gregory wrote:
>
> I agree this should be in rng.
>
> Does rng duplicate all of the lang APIs such that we can deprecate the lang
> methods?
In short, yes.
(cd src/main && git grep -c Random)
- ArrayUtils
- RandomStringUtils
- RandomUtils
The proposed
I agree this should be in rng.
Does rng duplicate all of the lang APIs such that we can deprecate the lang
methods?
Gary
On Tue, Dec 6, 2022, 09:36 Alex Herbert wrote:
> Currently the [rng] sampler package can only shuffle primitive int[]
> arrays:
>
> o.a.c.rng.sampling.PermutationSampler:
On Tue, 6 Dec 2022 at 14:38, Bruno Kinoshita wrote:
>
> Hi Alex,
>
> I also don't have a use case for this right now. What about creating a JIRA
> issue to wait to see if someone has the need for this feature? Maybe users
> will confirm they need it, or provide other suggestions?
>
> -Bruno
I do
Hi Alex,
I also don't have a use case for this right now. What about creating a JIRA
issue to wait to see if someone has the need for this feature? Maybe users
will confirm they need it, or provide other suggestions?
-Bruno
On Tue, 6 Dec 2022 at 15:36, Alex Herbert wrote:
> Currently the
Currently the [rng] sampler package can only shuffle primitive int[] arrays:
o.a.c.rng.sampling.PermutationSampler:
public static void shuffle(UniformRandomProvider rng, int[] list)
public static void shuffle(UniformRandomProvider rng,
int[] list,
int start,
boolean towardHead)
I would