Randomly pick a word from Notion page by using List Page Contents

Hello!

I currently have a page in Notion with a list of words. I want to randomly select a word from this page. By using List Page Content and Set Value I can currently obtain multiple operations, each operation outputting each word, but I’d like to know how to select a random word from this list and then append it to a Notion page.

The current problem is that it’s using multiple operations to output the variables separately so I can’t assign the words into an array and use the array shuffle function. If anyone knows how to assign these variables into an array, it’d be awesome.

Here’s my current scenario:

Here’re the operations:

Thanks ahead!

The best way to handle this is to use Text Aggregator and map the Variable value in there.

Then use Split function and split by space so you will get all the words in an array.

Then use Shuffle on that array to get a random word each time.

Let me know if this works.

4 Likes

Absolutely magical. I appreciate your help!

2 Likes