Implemented random function for results.