the new rand string code doesn't need to be in one-line functions.