added a random function to str class. added a secureRandom to attempt to get a better random string in some cases.