---
description: This function returns a random id which can be controlled with the params.
---

# generateId

## Params

numbers: boolean\
If this is true, there will be numbers in the id.

small: boolean\
If this is true, there will be small letters in the id.

large: boolean\
If this is true, there will be large letters in the id.

length: number\
This parameter defines the length of the returned string.

<figure><img src="https://616884300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAJYsZUxycDfiuLMcx4pl%2Fuploads%2FTrbGE8oOoHnhj6u29EAD%2Fimage.png?alt=media&#x26;token=bbfdc386-597a-41e7-8c75-2ad45a253b26" alt=""><figcaption></figcaption></figure>
