[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:111](https://github.com/LuanRT/YouTube.js/blob/305a398158a6cac82e6ef288fed4bf1661c89d52/src/utils/Utils.ts#L111)