Added random sample util