<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@digitalpersona/enrollment](./enrollment.md) &gt; [PasswordEnroll](./enrollment.passwordenroll.md) &gt; [randomize](./enrollment.passwordenroll.randomize.md)

## PasswordEnroll.randomize() method

Creates a new strong password with good complexity properties.

<b>Signature:</b>

```typescript
randomize(): Promise<string>;
```
<b>Returns:</b>

`Promise<string>`

a promise to return a randomized password.

## Remarks

DigitalPersona AD Server supports password randomization only for ActiveDirectory users. DigitalPersona LDS Server supports password randomization only for DigitalPersona users (formerly "Altus Users").

