How to Refresh GHPython Output

I’ve using a GHPython component to generate some output points using random values. Is there a way I can re-trigger the generation of those values based on some interaction within the Grasshopper workspace? i.e. refresh the output?