Template: Using Lists
Using Lists

Required Experiment Builder Version: 1.10.1025 or higher
EyeLink Required: Yes
Type: Complete Example
Difficulty Level: Easy

This example illustrates:
  • How to randomly generate a number at the beginning of the trial (Simple_List_Pick_Element_With_Replacement.ebz)
  • How to use random.shuffle() function at the beginning of the trial (Simple_List_Shuffle_With_Replacement.ebz)
  • How to use random.shuffle() function at the beginning of the block (Simple_List_Shuffle_No_Replacement.ebz)

These examples modify the Simple experiment provided with the SR Research Experiment Builder Examples and demonstrate how to use and shuffle lists. Whereas the elements in these lists are items to display on the screen, there is a wide variety of the things that can be stored in lists. The Simple example displays a single word on each trial.

**Additional detailed information about the project is given in the notes section for most nodes. To see notes for a given node, either mouse over that node or click on it to display the notes window. If the notes window is not visible, go to the "View" drop down menu in Experiment Builder, select "Properties", and check "Note".

NOTE: Please see our Randomizing Variables Outside of Data Source in Experiment Builder and Data Source Randomization in Experiment Builder Webinars for more randomization methods.

  1. Download the Simple_List_Pick_Element_With_Replacement.ebz and / or the Simple_List_Shuffle_With_Replacement.ebz and / or the Simple_List_Shuffle_No_Replacement.ebz example(s) from this message.
  2. Launch the Experiment Builder application.
  3. Unpack the file/s to a location on your Experiment Builder PC with "File menu -> Unpack".
  4. Open the project in Experiment Builder.
  5. Deploy the project to a new folder.
  6. Run the Simple_List_Pick_Element_With_Replacement.exe and / or the Simple_List_Shuffle_With_Replacement.exe and / or the Simple_List_Shuffle_No_Replacement.exe from the deployed directory.

.ebz   Simple_List_Pick_Element_With_Replacement.ebz (Size: 63.85 KB / Downloads: 20)

.ebz   Simple_List_Shuffle_No_Replacement.ebz (Size: 81.67 KB / Downloads: 26)

.ebz   Simple_List_Shuffle_With_Replacement.ebz (Size: 63.39 KB / Downloads: 16)