get random index of sample by random(Size) instead of random(N) to avoid...

The ets size of uniform sample gets larger and larger after a few days running.