${\displaystyle Prob\left\{x=1\right\}=1-Prob\left\{x=0\right\}=p}$
where ${\displaystyle p}$ is the probability of generating the value 1.