|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] RNG |
Date: | Thu, 19 May 2016 12:21:53 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
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. |
[Prev in Thread] | Current Thread | [Next in Thread] |