Randomize 2 slider

I’m trying to make something similar to this question, where the slider has either 2 or 5 options. I got referred to this post. Is it still not possible to do it as proposed in the OP? I understand that I still need to make a separate component for each variation.