GeoGebra Script: On Update
Constructing the point A, and edit "On Update" term of the point A.
It's important to construct the object with it's name.
list={"Red", "Green", "Blue"}
c=Circle[O, RandomBetween[0, 30]/10]
SetColor[c, Element[list, RandomBetween[1, 3]]]