Macro for random solid color

Hello everyone,
Does anyone have a solution for a Macro for a random solid colour, which will not change, triggered by a button push.
I’ve split my lightstrip into 2 segments. If I push a button I would like to have a random color at the current set brightness for segment 1 and a different random color for segment 2.
I already tried effect “random color” with speed and intensives set to 0 but unfortunately the light changes over short time.
Thank you all in advance.