apoc.coll.randomItems
Function
apoc.coll.randomItems(coll LIST<ANY>, itemCount INTEGER, allowRepick BOOLEAN)
- returns a LIST<ANY>
of itemCount
random items from the original LIST<ANY>
(optionally allowing elements in the original LIST<ANY>
to be selected more than once).
Signature
apoc.coll.randomItems(coll :: LIST<ANY>, itemCount :: INTEGER, allowRepick = false :: BOOLEAN) :: LIST<ANY>