Created rough algorithm for sampling from end of distribution.