get random index of sampel by random(Size) instead of random(N) to avoid the sample size getting larger