commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <>
Subject [jira] [Resolved] (MATH-1348) Provide an adaptor that is a subclass of "java.util.Random"
Date Wed, 14 Dec 2016 16:01:58 GMT


Gilles resolved MATH-1348.
       Resolution: Resolved
    Fix Version/s:     (was: 4.0)

Class removed in commit fec31ae53e61cc4ead73dc97757f6f265566b8d4.

{{JDKRandomBridge}}  (defined in module {{commons-rng-simple}} of "Commons RNG") provides
a similar functionality.

> Provide an adaptor that is a subclass of "java.util.Random"
> -----------------------------------------------------------
>                 Key: MATH-1348
>                 URL:
>             Project: Commons Math
>          Issue Type: Task
>            Reporter: Gilles
>            Assignee: Gilles
>            Priority: Minor
>              Labels: api, compatibility
> Some utilities of the JDK require a {{java.util.Random}} as an argument (e.g. method
"shuffle" in {{java.util.Collections}}.
> In order to use such utilities but with the actual RNG delegated to alternative algorithms
(i.e. those provided in CM), we have to extend {{Random}}, overriding all the generation methods.
> The adaptor will be similar to {{o.a.c.m.random.RandomAdaptor}} but for {{o.a.c.m.rng.UniformRandomProvider}}
instead of {{o.a.c.m.random.RandomGenerator}}.

This message was sent by Atlassian JIRA

View raw message