Implement sampler as independent function
Created by: wanghaoshuang
- uniform distribution sampler
- log uniform distribution sampler
- The terms in NLP application always meet heavy-tailed distribution. So we need a log uniform distribution sampler. And the distribution`s PDF is 1/(x+1)lnR in which R is the range of sampling.