Added method to fetch random record