Let X represent the number of heads after flipping a fair coin twice with probability.

xP(X=x)
00.25
10.5
20.25

Is X a random variable?