[youtubei.js](../../../../README.md) / [Utils](../README.md) / generateRandomString # Function: generateRandomString() > **generateRandomString**(`length`): `string` Defined in: [src/utils/Utils.ts:124](https://github.com/LuanRT/YouTube.js/blob/853a36307b5d644ada14dcb1216c2c22c2ae7b73/src/utils/Utils.ts#L124) Generates a random string with the given length. ## Parameters ### length `number` ## Returns `string`