fix rand
add test
Merge branch 'master' of github.com:actsocial/NLP