Array bundles random file

Hi all,

I try to get a random file from my Google Drive:

image

I used this video:

For some reason I keep getting the same result. It does not randomize.

The difference seems to be that in the video, there is only one bundle with a lot of data, I have multiple bundles.

So as said, I have 20 files in a Google Drive and I want the scenario to pick 1 random file, so also a different file every time.

Does anyone know how to achieve this or what I am doing wrong?

Please see this duplicate topic for randomly picking an item from an array.

Let me know if there are any further issues!

samliew – request private consultation

Join the Make Fans Discord server to chat with other makers!

Hi, thanks for your reply,

I do not see how I can implement that into my own scenario.
For starters, the case in the link has only 3 to pick from, I have 20 and more in the future.
Also, where would I shuffle the bundles? In a tool after the Array or in the Array itself?

You can do it in your Set Variable module [3].

i.e.:

{{ first(shuffle( 2.array )) }}

Hope this helps! Let me know if there are any further issues!

samliew – request private consultation

Join the Make Fans Discord server to chat with other makers!

2 Likes

Fixed, thank you a lot!

No problem, glad I could help!

1. If anyone has a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

2. The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

  • others can save time when catching up with the latest activity here, and
  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post that answers your question:
Screenshot_2023-10-04_161049

3. Don’t forget to like and bookmark this topic so you can get back to it easily in future!

4. Do join the unofficial Make Discord server for live chat and video assistance

Hope this helps! Let me know if there are any further issues!

samliew – request private consultation

Join the Make Fans Discord server to chat with other makers!