Generate a random string that matches a given RegExp JavaScript object.