Help with Randomization of Non-Overlapping Images

tamiskovich at gmail.com tamiskovich at gmail.com
Tue Aug 5 13:30:23 UTC 2014


Hi all, 

I just got an email from a user today who had trouble posting to the board, 
but his solution appears to work so far. Here it is:

(I had trouble with google groups responding – I hope you’re the Tara who 
emailed the eprime group – if not please ignore – sorry…)

Hi Tara,

I'm not certain this will fix the problem, but I think the loop fails due 
to the precedence of OR vs AND in the conditional. The sets of X's and Y's 
need to be grouped together. Add the parenthesis shown beloww to hopefully 
fix the problem:

 

Loop While ((x2 = x1 Or x2 = x1 + 1 Or x2 = x1+2 Or x2 = x1 - 1 Or x2 = x1 
- 2) _

And (y2 = y1 Or y2 = y1 + 1 Or y2 = y1 + 2 Or y2 = y1 + 3 Or y2 = y1 - 1 Or 
y2 = y1 - 2 Or y2 = y1 - 3))_

Or ((x3 = x1 Or x3 = x1 + 1 Or x3 = x1+2 Or x3 = x1 - 1 Or x3 = x1 - 2) _

And (y3 = y1 Or y3 = y1 + 1 Or y3 = y1 + 2 Or y3 = y1 + 3 Or y3 = y1 - 1 Or 
y3 = y1 - 2 Or y3 = y1 - 3))_

Or ((x3 = x2 Or x3 = x2 + 1 Or x3 = x2+2 Or x3 = x2 - 1 Or x3 = x2 - 2) _

And (y3 = y2 Or y3 = y2 + 1 Or y3 = y2 + 2 Or y3 = y2 + 3 Or y3 = y2 - 1 Or 
y3 = y2 - 2 Or y3 = y2 - 3))_

or ((x4 = x1 Or x4 = x1 + 1 Or x4 = x1+2 Or x4 = x1 - 1 Or x4 = x1 - 2) _

And (y4 = y1 Or y4 = y1 + 1 Or y4 = y1 + 2 Or y4 = y1 + 3 Or y4 = y1 - 1 Or 
y4 = y1 - 2 Or y4 = y1 - 3))_

Or ((x4 = x2 Or x4 = x2 + 1 Or x4 = x2 + 2 Or x4 = x2 - 1 Or x4 = x2 - 2) _

And (y4 = y2 Or y4 = y2 + 1 Or y4 = y2 + 2 Or y4 = y2 + 3 Or y4 = y2 - 1 Or 
y4 = y2 - 2 Or y4 = y2 - 3))_

Or ((x4 = x3 Or x4 = x3 + 1 Or x4 = x3 + 2 Or x4 = x3 - 1 Or x4 = x3 - 2) _

And (y4 = y3 Or y4 = y3 + 1 Or y4 = y3 + 2 Or y4 = y3 + 3 Or y4 = y3 - 1 Or 
y4 = y3 - 2 Or y4 = y3 - 3))

 

Regards,

Bill

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com.
To post to this group, send email to e-prime at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/be042776-ff29-443f-8cb4-252d202cb63c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20140805/55a4bce3/attachment.htm>


More information about the Eprime mailing list