apoc.coll.randomItem

Function

apoc.coll.randomItem(coll)- returns a random item from the list, or null on an empty or null list

Signature

apoc.coll.randomItem(coll :: LIST? OF ANY?) :: (ANY?)

Input parameters

Name Type Default

coll

LIST? OF ANY?

null