> So there is a verb in the standard library which does exactly
> what I wanted.
Just to emphasise that it does pay to search the library...
I used Find in files to look for things like "seed" ; "random seed" ;
"random value" ; "random link" ; "9!:1 " and among others found the
following:
c:\program files\j601\system\examples\games\solitaire\main.ijs (1)
9!:1 >.*:+/6!:0'' NB. random seed
c:\program files\j601\system\examples\phrases\phrf10.ijs (1)
m3=: 9!:1@<.@(+/ .^&2@(6!:[EMAIL PROTECTED])) NB. Randomizing random
number seed
c:\program files\j601\system\examples\demo\allout.ijs (1)
9!:1 >.1000*60#._2{.6!:0 ''
As well as the already mentioned (although this time it is in
random.ijs)
c:\program files\j601\system\packages\stats\random.ijs (2)
NB.*randomize v sets a random value into random link
randomize=: 3 : 0
([ 9!:1) >:<.0.8*0 60 60 24 31#.0 0 0 0 _1+|.<.}.6!:0 ''
)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm