The weak convergence of the empirical process with random sample size