The main aim of this paper is to establish an Ostrowski type inequality for the cumulative distribution function of a random variable taking values in a finite interval [a,b]. An application for a Beta random variable is given.