Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 2 of 2

Thread: randomizing location

  1. #1

    randomizing location

    Is there any way to use the rand() command to randomize location? I'm doing a parafoveal priming task and I want the prime lacation (one of four quadrants) to be random.
    Last edited by jarvis24; 04-07-2006 at 02:53 PM.

  2. #2
    Join Date
    Nov 2005
    Posts
    3,323
    Haven't tried. I expect you would run into trouble with the commas if you tried the whole thing at once like this:
    Code:
     
    rand(.25,.25,0,.25,.75,0,.75,.25.0,.75,.75,0)
    You might think this would work:
    Code:
     
    (".25,.25,0",".25,.75,0",".75,.25.0",".75,.75,0")
    But it won't--the parser I wrote doesn't care about quotes.

    There may be a way though. Try this:
    Code:
     
    rand(.25,.75),rand(.25,.75),0
    That ought to give you a randomly chosen quadrent. Remember to use center alignment in your style if you want the stimuli to be centered on these points.

    For interested others: see Using Random Values in the guide for more detail on this function.

    Hope that helps!
    Blair

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •