added function to get random loan