Added the random() function for issue#45 but have not added tests for it