Use ?. instead of ? -- 10 ?. 1e5 NB. reproducible 6146 39051 43621 70593 70098 93429 97808 31763 924 23484 10 ?. 1e5 6146 39051 43621 70593 70098 93429 97808 31763 924 23484 10 ? 1e5 NB. non-reproducible 85613 73320 61375 8250 92829 42945 21374 50929 52909 33489 10 ? 1e5 60623 77893 24670 70554 43957 31129 41880 33044 3705 71831
----- Original Message ----- From: Carl Wyant <[email protected]> Date: Monday, April 26, 2010 19:44 Subject: [Jprogramming] repeatable (pseudo-random) numbers. To: [email protected] > I would like to be able to generate a 'list' of 'random' (or I guess, > pseudo-random), non-repeating numbers; somewhere between 00000 > and 99999. > But more importantly, I would like to be able to repeat, [or > alternatively,have someone else (on some other computer)] > generate the SAME list. > > Is there some way to do this in J, short of creating a formula > to just > 'randomize' such a list? > > It would be nice to be able to do statistical analysis with > "repeatable"data-sets that still obey the criteria for "random" > numbers. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
