Task 2.1
1) What are the possible values of x as a result of the following block?
set n to pick random 0 to 1
set x to 2 * n
2) How do you modify from the above block such that $x \in \{-1, 1\}$, i.e., the value of x is either -1 or 1?
3) How can you generate a random integer $x \in \{0, 1, 2\}$ but instead of equal probabilities, the
probabilities of getting 0,1,2 are 0.25,0.5,0.25 respectively?
4) What are the possible values of y as a result of the following block?
set n to pick random 1 to 20
set y to n / 2
5) How do you modify from the above block such that $y \in \{1.5, 2.0, 2.5, 3.0, 3.5, 4.0\}$?