Hi Xiao-Yong,

in that case you may consider my earlier proposal of replacing /dev/urandom
by your own RNG in written C/C++. You can provide the initial seed as command line
argument to the RNG in order to make it reproducible.

Also have a look at:

      ⎕SYL[20 21;]
 largest integer              9200000000000000000
 smallest (negative) integer ¯9200000000000000000

which gives you the range of "safe" integers which are (most likely) not rounded to floats.

Needless to say that "true" randomness and reproducibility are somewhat contradictory.

/// Jürgen


On 05/19/2016 12:35 AM, Xiao-Yong Jin wrote:
We need reproducibility, so /dev/urandom isn’t an option.
⎕FIO is a wonderful thing in gnu apl.
I still want something easy to manipulate in apl so I can play with different ideas easily.


Reply via email to