---
title: "array:rand — Random array item"
description: "iXML command array:rand: Random array item."
canonical_url: "https://www.zeyos.com/ixml/ref/array-rand"
markdown_url: "https://www.zeyos.com/ai/guide/ixml/ref/array-rand.md"
section: "ixml-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/ixmldoc.xml"
source_sha256: "a23f04e6a98628ca3c273c3b8dd2c33c034cfda3e0f00478d8793074fd2f70dd"
---

# array:rand — Random array item

ARRAY:RAND returns a random item of an array.

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| var | var |  | Variable name |
| var_key | var |  | Result variable name for key |
| var_value | var |  | Result variable name for value |

### Children
- (none)

### Parents
- (not restricted in the reference)

### Result
- binding: var_key; type: n/a; predicate: no-result-propagation
- binding: var_value; type: n/a
