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

Gilles commented on RNG-16:
---------------------------

The application looks interesting.
But I'm not sure I understand the requirement: Is it foreseen that different 
clients (implemented in different languages, and using that language's standard 
"rand" generator) will generate the same sequence?
>From the table on the Wikipedia page, it doesn't look like it'll fly (same 
>algorithm, but different multiplier/increment/truncation).

An obvious way to ensure the same sequence, is to distribute all the numbers to 
the clients. True it is much more data to transfer.  But it is also more secure 
and more flexible (e.g. the server can decide to switch to another generator at 
any time).

I'm about to post on the "dev" ML to discuss the more general issue of what the 
contents of "Commons RNG" should be.


> Linear congruential generators
> ------------------------------
>
>                 Key: RNG-16
>                 URL: https://issues.apache.org/jira/browse/RNG-16
>             Project: Commons RNG
>          Issue Type: Improvement
>            Reporter: Emmanuel Bourg
>            Priority: Minor
>
> This is a RFE for implementing linear congruential generators:
> https://en.wikipedia.org/wiki/Linear_congruential_generator
> This type of random generator is often used in language runtimes (Borland C, 
> GCC, Delphi, VB and even Java). Preconfigured generators using the same 
> parameters as these languages would be convenient for reproducing the same 
> number sequences in Java.



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

Reply via email to