add randomString() and has()
add doc
add test
Merge pull request #3 from dead-horse/add-method

Add method