Solving Discrete Random Variable