randomsample

off by one error removed