Mathematical expression for randomly selecting from two integers

79 Views Asked by At

I wonder what is the shortest and correct mathematical expression for the below:

$x =$ random$(1$ or $2)$ where there is equal probability of selecting 1 or 2.

Thanks for your help.