Yes, this is the way one should do it:
set a custom random seed.
Thanks
Am 19.07.20 um 17:09 schrieb Julian Fondren:
On 2020-07-19 09:36, Hauke Rehr wrote:
If you don’t know about this and try to
work with powers of two, switching to ?.
someday since you want reproducible results,
you might end up with very bad results
even though you tested the statistical
properties when you were still dealing
with ?
For this use, retain ? but set a known seed with 9!:1
?.'s PRNG is reset on every invocation, so there's nothing can
be done to make it not have dubious results in a program that
calls it more than once.
#~. ?."0 ] 2 ^ i.20
7
#~. ?. ] 2 ^ i.20
18
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
--
----------------------
mail written using NEO
neo-layout.org
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm