That seems like a likely explanation. It definitely wasn't in the
clipboard though (I had opened the script as a reference in a separate
tab but I hadn't even looked at it yet, and the part of the script that
the gtk terminal reproduced was several pages down).

Since it gave me 302 chars and I was generating boxes of at most 255
chars, I suppose this is the only possible culprit. Maybe I should
generally avoid displaying random sequences of characters in gtk if
there is this risk.

Thanks,
Jordan

-----Original Message-----
From: programming-boun...@jsoftware.com
[mailto:programming-boun...@jsoftware.com] On Behalf Of Raul Miller
Sent: Thursday, January 26, 2012 4:17 PM
To: Programming forum
Subject: Re: [Jprogramming] Roll gave me "random" characters directly
from a script I had open

You might have generated an escape sequence which pasted content from
the clipboard, or something of that character.

I do not know what the gtk terminal region is capable of.

--
Raul

On Thu, Jan 26, 2012 at 4:10 PM, Tirrell, Jordan (Consultant)
<jtirr...@thomasnet.com> wrote:
> I was using roll to generate some random varchar data in jgtk.
> Specifically, the line I executed was
>
>
>
> <@(a.{~?&256)"_1 @ ?&256 ]10
>
>
>
> I was very surprised to see output that included a run of 302 chars 
> that is a direct quote from a script I had open (but had not run).
>
>
>
> I know some pseudorandom generators do things like read system memory,

> but the vocab says J uses the Mersenne Twister algorithm by default, 
> which I think shouldn't behave like this.
>
>
>
> Could this be some weird GTK display glitch? I was simultaneously 
> experiencing the bug where it can't properly draw boxes.
>
>
>
> Has anyone else seen this behavior? Unfortunately it's probably next 
> to impossible to duplicate.
>
>
>
> Jordan
>
> ----------------------------------------------------------------------
> 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