added script to show distribution of random function