---
title: isMaxRecipientsRandomOrder
slug: campaign/docs/ismaxrecipientsrandomorder
createdAt: 2026-07-02T19:01:46.338Z
---

This method depends on the [setMaxRecipients](docId\:KAtNVY5rdP7Vvo886Fyvy) method. See also [getMaxRecipients](docId\:VEzW_87YbR72ib73blbuS), [setMaxRecipients](docId\:KAtNVY5rdP7Vvo886Fyvy), and [setMaxRecipientsPercentage](docId\:zbUiH36OhO6h1em_-HiQF).

**Type**: boolean

**Parameters**

| Name      | Type   | Value             |
| --------- | ------ | ----------------- |
| sessionId | String | ID of the session |
| mailingId | long   | ID of the mailing |

**Return values**

- true: Recipients are selected on a random basis. The return value is trueif:
  - the option **Maximum number of recipients** is activated and a corresponding value is set and
  - the option **Random order** is activated.
- false: Recipients are not selected on a random basis.

**Code structure**

```javascript
boolean isMaxRecipientsRandomOrder(String sessionId, long mailingId)
```
