DASH - Calling a python function using a form button

Hy, guys !

I have a python function that returns one random row from a dataframe. How do a call that function using a button created by app.dash and save the return from the function in another variable ?