[Jprogramming] Roll (?) produces domain error on large input

Matthew Baulch baulch.matt at gmail.com
Mon Jan 11 11:19:10 UTC 2016


Ignore my answer. This is more sensible.
On 11 Jan 2016 10:16 pm, "Ben Gorte - CITG" <B.G.H.Gorte at tudelft.nl> wrote:

> 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 [programming-bounces at forums.jsoftware.com] on behalf of
> Eddie Bracho [e.bracho at LIVE.COM]
> Sent: Monday, January 11, 2016 11:22
> To: programming at jsoftware.com
> 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


More information about the Programming mailing list