Randomising the number of vertices for a polygon

Hello everyone!

I was wondering if there is any way to randomise the number of vertices entered for a regular polygon. The regular polygon is selected from the shape drop-down menu after inserting a polygon as a stimuli. I am hoping to use an excel sheet to call in the number of vertices, but this condition will not let me call in the excel sheet as a variable. Is there anything I could do to fix this?

Thanks so much!!

Julia

I don’t you can change the number of vertices of a polygon after creation. What I do is create a number of different polygons as a list of objects in a code component and then shuffle the list to pick ones at random.

Thanks very much for your advice!