Random Sorting Lists (To obtain random sublist)

Hi there.

I am trying to get a random sublist of a bigger list. My initial idea was to random sort the bigger list and then truncate it. But the sort option doesn’t appear on lists…
The only i could think of this was to random items “one by one”. But this could lead to repetitions and i need to add 50 items…

Does anyone have a different approach?

Thanks in advance

Hi there, @gustavo.monteiro1… maybe this solution would do the trick. Have you tried something like that?

Best…
Mike

What do you mean ‘the sort option doesn’t appear on lists’?..

The sort option only appears on lists…

Thanks @adamhholmes and @mikeloc but the point is…
It is a list of images (So not a thing on the database). When I reference the list of images (to do a setlist) the sort option does not show…

To clarify

Well, the simplest (and best) approach would be to create an Image datatype (always a good idea anyway), then you can sort your images just like any other datatype.

@adamhholmes yes, i can see that working…
The problem is that i use a Lot of setlist actions and to make that that work with database things would mean a lot of loops. And you know bubble is not very good with looping…
Maybe there is something i a am missing (an easy way to create a lot of things and add It to list)

This topic was automatically closed after 70 days. New replies are no longer allowed.