added random sampling one liner