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