Expose random() to the api