[Jprogramming] Roll gave me "random" characters directly from a script I had open

Linda Alvord lindaalvord at verizon.net
Fri Jan 27 10:15:13 HKT 2012


When I pushed reply all the spaces were filled with the little black squares with a question mark in the middle reappeared.  They were in my original message. They were empty spaces when I read my e-mail and mysteriously reappeared when I replied.  Strange.

Linda


-----Original Message-----
From: programming-bounces at jsoftware.com [mailto:programming-bounces at jsoftware.com] On Behalf Of Linda Alvord
Sent: Thursday, January 26, 2012 9:06 PM
To: 'Programming forum'
Subject: Re: [Jprogramming] Roll gave me "random" characters directly from a script I had open

This is from chrome at startup

┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────...
│����)/Z��┘T┴r(�┬�%���{����
p.�����
�w�]�āq��`"޻�������������QULz3�-�#W�I��!�$k����V'_�5��
� ;Gld�6�N=�42│��>�G� ��*l�v������B�\└oZ.&^�HDT (������┼�#�$%2}�=��i�@0)���L��r��-
�n��├� t��─┬┴�U�gkx�����Cs�W��R �/5���� m��!┌┤���쵒 �8;��OݢK�[��3J��
...
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────...

Linda


-----Original Message-----
From: programming-bounces at jsoftware.com [mailto:programming-bounces at jsoftware.com] On Behalf Of Tirrell, Jordan (Consultant)
Sent: Thursday, January 26, 2012 4:11 PM
To: programming at jsoftware.com
Subject: [Jprogramming] Roll gave me "random" characters directly from a script I had open

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


More information about the Programming mailing list