an easy example of how javascripts math.random function works.