OS (e.g. Win10): Win10
PsychoPy version (e.g. v2022.2.4):
What are you trying to achieve?: I’m trying to create a random list of 15 items from a larger list of 48. I’m using the builder, but wrote code snippets. I’d like the random selection of items to be the same when I repeat the experiment! It’s for the combination of conditon files and I need my choice to be replicable.
What did you try to make it work?: Inside the loop I’m using
selected rows: $np.random.choice(48, size = 15, replace = False) to choose my 15 items from my list.
Setting random seed to anyting (1, 99, 0) didn’t do anything. I still got a different order of the 15 items each time I ran the experiment.
Also, setting random.seed() in the code to anything didn’t do it.
Here’s the code I’m using:
for i in range(1):
list_length = len(combination_list)
I’d be very grateful for any help (Probably unnecessary to mention that I am quite the beginner with Psychopy…)