Added a random() function.