> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://v3.viem.sh/api/mcp` to find what you need.

# Mnemonic.random

:::info
`Mnemonic.random` is a re-export of ox's [`Mnemonic.random`](https://oxlib.sh/api/Mnemonic/random). Refer to the ox documentation for the full reference.
:::

Generates a random mnemonic.

## Imports

```ts
import { Mnemonic } from 'viem/utils'
```

## Examples

```ts twoslash
// @noErrors
import { Mnemonic } from 'viem/utils'

const mnemonic = Mnemonic.random(Mnemonic.english)
// @log: 'buyer zoo end danger ice capable shrug naive twist relief mass bonus'
```

## Definition

```ts
function random(
  wordlist: string[],
  options?: random.Options,
): string
```

## Parameters

### wordlist

* **Type:** `string[]`

The wordlist to use.

### options

* **Type:** `random.Options`
* **Optional**

Generation options.

#### options.strength

* **Type:** `number`
* **Optional**

The strength of the mnemonic to generate, in bits.

## Return Type

The mnemonic.

`string`
