apoc.coll.randomItem
Function APOC Core
apoc.coll.randomItem(coll)- 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?