apoc.coll.randomItem
Function
apoc.coll.randomItem(coll [Any])
- returns a random item from the list, or null on an empty or null list.
Usage examples
The following returns a random value from a list:
RETURN apoc.coll.randomItem([1,3,5,7,9]) AS output;
Output |
---|
7 |
Was this page helpful?