
Randomly select an record from a collection (loop)
Is there a way to loop through an collection and let Betty randomly select a record from that collection?
example:
I have 10 records with status "Not picked". Now I want to loop through that collection and let betty randomly set 1 record to status "Picked".
THNX!
Is there a way to loop through an collection and let Betty randomly select a record from that collection?
example:
I have 10 records with status "Not picked". Now I want to loop through that collection and let betty randomly set 1 record to status "Picked".
THNX!
-
I know a way, but it involves some shifty methods. How important is it for the record te be random? Would an arbitrary record be sufficient for your requirements?