Is there a set $S\subset[0,1]$ such that:
$\forall s_1,s_2\in S:\exists x\not\in S, s_1<x<s_2$
$\forall x_1,x_2\not \in S:\exists s\in S, x_1<s<x_2$
And that if $Y\sim U(0,1)$ is a uniformly distributed random variable, $$0<Pr[Y\in S]<1$$
Is there a set $S\subset[0,1]$ such that:
$\forall s_1,s_2\in S:\exists x\not\in S, s_1<x<s_2$
$\forall x_1,x_2\not \in S:\exists s\in S, x_1<s<x_2$
And that if $Y\sim U(0,1)$ is a uniformly distributed random variable, $$0<Pr[Y\in S]<1$$
Take $S$ to be $(\Bbb Q\cap(0,\frac14))\cup((\frac14,\frac34)\setminus\Bbb Q) \cup(\Bbb Q\cap(\frac34,1))$.
Really the idea is to partition the interval into three smaller intervals, take dense co-dense sets in each, and ensure not to get a full probability. The rationals and irrationals give us the dense sets, just break out the probability.
The set I gave can be simplified using these ideas, and you should come up with simpler sets like that.
If you want the relative measure of $S$ in every interval to be $\frac12$, that sort of behavior is pretty strongly ruled out by the Lebesgue Density Theorem, which states that if $S$ is measurable, its density at almost every point in $[0,1]$ is either $0$ or $1$. See further discussion in questions 20170 and 89424.