---
url: /api/core/types/utils/function-get-random-id.md
description: api documentation of getRandomId from @tsed/core
---

## Usage

```typescript
import { getRandomId } from "@tsed/core";
```

> See [/packages/core/src/utils/getRandomId.ts](https://github.com/tsedio/tsed/blob/v8.38.8/packages/core/src/utils/getRandomId.ts#L0-L0).

## Overview

```ts
function getRandomId(): string;
```

## Description

Generates a random identifier string starting with 'e'.

Uses base-36 encoding of a random number to create a unique identifier.
