how would you do a random variable problem like this
suppose a non bias coin was tossed two times
Well... let be the random variable. You could make it stand for the number of times heads appeared.
would then be the probability that x heads appeared.
xxx
Since the coin is non-biased these same probabilities would appear if you set as the number of tails that appeared.
Is this what you wanted?