updates to randomsample

fully functional