Type stable implementation of an Empirical Cumulative Distribution Function (ECDF) sampler.
recdf(x, n)
x
numeric vector
n
number of draws
vector of n elements of the same type as x
ecdf
recdf(1:5, 10)