The idea behind this post is to understand two types of random variables: Discrete Random Variables and Continuous Random Variables. If you are not familiar with what are random variables please…