Yes, does exactly what I need to do when used in conjunction with From ({).

    (?~21){i.21

I should spend more time reviewing the primitive vocabulary. Thanks to both of 
you for the assistance.

Eddie




________________________________________
From: Programming <[email protected]> on behalf of Ben 
Gorte - CITG <[email protected]>
Sent: Monday, January 11, 2016 3:15 AM
To: [email protected]
Subject: Re: [Jprogramming] Roll (?) produces domain error on large input

If I correctly understand your question, could it be you want:

   ?~21

It gives a random permutation of i.21 (and also works for much larger values)

Ben
________________________________________
From: Programming [[email protected]] on behalf of Eddie 
Bracho [[email protected]]
Sent: Monday, January 11, 2016 11:22
To: [email protected]
Subject: [Jprogramming] Roll (?) produces domain error on large input

    (? ! 21)

|domain error

| ( ?!21)



Is this intended behavior? I'm trying to shuffle an array by providing a random 
permutation to Anagram (A.), but this limitation does not allow me to shuffle 
arrays with more than 20 elements.

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to