# How to tell the difference between discrete or continuous random variables given the weight of bags of apples, with 20 apples in a bag?

By contrast, an example of a discrete random variable might be the number of heads after $n$ flips of a coin. In this case, our random variable could take on any whole number value between $0$ and $n$, but could not take on a value of $0.1 , 0.2 , 0.5 ,$ because we cannot flip a coin and get only a tenth, a fifth, or a half of a head. This random variable would be discrete, because it is not able to take on any arbitrary value within its range.
(Note that, even if we were counting the number of heads as $n \to \infty$, this would remain a discrete variable. In this case, our number of heads is said to be countably infinite. )