random listitem

0
Hello, Is it possible to get a random item from a retrieved list in microflow?   Kind regards, Steven Keersmaekers
asked
2 answers
4

Hi Steven

Perhaps you can create a random integer (round(random()*{numberOfObjects})), where numberOfObjects is the number of objects of that entity in the database. You can then use this number to retrieve the random object with a custom range: 

 

Seems a little bit strange, but I do not know another way to do it

answered
0

See following Marketplace module ‘Random object’, which solves this issue by implementing (a simple) Java action:
https://marketplace.mendix.com/link/component/118958

answered