I can't seem to wrap my head around this and it's driving me nuts.

I want to toggle on or off numbers 1-5 then select randomly from what is toggled on.

So let's say numbers 1, 3, or 5 are toggled on. I want to randomly select one of those numbers.

It seems simple enough but I've been fiddling for hours please help