Moved functions for random strings

Moved functions for random strings into this package.