A function from sample space to real line.

Discrete

A discrete Random Variable is characterized by its probability mass function.

A pmf, is such that:

Continuous

A continuous RV is characterized by its probability distribution function. A pdf is such that:

The sample space for cts rv’s is often the reals.