A simple function can be used to generate a random string with the specified length. And, the range of the characters is configurable.