val
New Member
Posts: 4
|
Post by val on Nov 9, 2021 22:00:59 GMT
Hi there,
When using the “random” command to randomly select a number from a range, can you determine how many times a specific number is chosen?
For example, with the following line of code:
set $memory random 1 3
I would like to have $memory == 1 for 30% of trials in a block (in my case, this is 6 out of 20 total trials), and $memory != 1 for the remainder of trials.
Is it possible to set these conditions for randomization, and if so, what line of code should I add to my script to make this happen?
Thank you.
|
|