I have a vector of y (min is > 0, max could be 1), for which, i have no idea what distribution is. But based on the data we have, vector y, we can get the empirical cumulative probability distribution, i.e., ecdf(y).
My question is how to sample new data based on this empirical distribution?