Newsgroups: comp.lang.apl
Path: watmath!watserv2.uwaterloo.ca!torn!utnut!cs.utexas.edu!swrinde!gatech!gsusgi1.gsu.edu!gsusgi1.gsu.edu!qmdbms
From: qmdbms@gsusgi2.gsu.edu (Brian Schott)
Subject: Re: Setting the seed in J
Message-ID: <qmdbms.738008730@gsusgi1.gsu.edu>
Organization: Georgia State University
References: <93139.214104HALTEMAN@MAINE.MAINE.EDU>
Date: Fri, 21 May 1993 18:25:30 GMT
Lines: 24

<HALTEMAN@MAINE.MAINE.EDU> writes:

>Greetings

>    I apologize for such a trivial question.  I am new to J and am having
>a little trouble with the cryptic dictionary.  Anyway, how does one change
>the seed for the random number generator?  I have J6.2 for a PC.  I started
>with 9!:1 15837 and have gotten "rank error" as the response.  I have tried
>making the number a character, a vector, and a matrix (of dimension 1 x 1). I
>have even tried 9!:1 9!:0 '', figuring the system would return the seed in the
>form it wanted to get it. No such luck, still got "rank error".  Any help
>would be greatly appreciated.

>Thanks in advance,

>Bill Halteman

Just put the new seed in parentheses, eg. 9!:1 (15053) 

-- 
Brian Schott/Decision Sciences Dept.             qmdbms@gsusgi2.gsu.edu
College of Business Administration                         404-651-4070
Georgia State University                  interests: approx. reasoning,
Atlanta, Georgia USA 30303-3083     (B=)       decision support systems
