Removed random from sampling.