Choose random color from a gradient for sprite renderer?

Hello I have a beautiful gradient colors I made & applied public Gradient gradient to my script for a gameobject sprite renderer to choose a random color from the gradient made. Is there a way I can do this?

You can get a random colour from a gradient via the following;

Color randColor = gradient.Evaluate (Random.Range (0f, 1f));