added rand() function
added "tests" for random numbers