Add method: generate a random string with give length.