changed name of 'random' function
added comment