[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/4ae0cc5c523a2080e68d6c0c1437c78fe318ea30/src/utils/Utils.ts#L126)