Randomising font size in each trial

I’m trying to design a go/no-go task (SART). Right now I have a number (1-9) being presented on screen and participants are asked to respond to every number besides 3 with a keyboard press (space).

In every trial, when the number is presented, I would like for each number size to vary by randomly choosing a font size. What is the best way to do this?

I have tried to use the shuffle function with a subset of font sizes with the following code:

fontSize = [[0.05], [0.08], [0.1],[0.6],[0.3]] shuffle(fontSize) # randomise the order on each trial

and in the text component under letter height: fontSize.pop()

But have received the following error:


You are putting lists within your list. e.g. Just specify the list as [0.05, 0.08, 0.1, 0.6, 0.3]. That way you pop out a number from the list, rather than another list.

Also you only need to shuffle the list once, rather than on each trial.

Such an easy fix! Thanks so much for your timely assistance @Michael!