Ramdom words - Impostor game

The snippet will be apply once and will not be closed untill all the persons get the word, something similar to impostor game

I want to use the ramdomize option in text blaze using a button to get a ramdom word, but if one word already appear i do not want the snippet to show that word again.

Lets say, I click the button to get the word between 2, Friend, Not friend. and if i get the not friend word the others do not need to have that same word

Here is a small example that randomly selects a new word from the list. It does select previously selected words.

{words=["aaa", "bbb", "ccc"]}
{run: used_words={{^^%5B%5D^^}}
selected_word=""}
{button: selected_word = {random-text: {=[word for word in words if not includes(used_words, word)]}}
used_words = [word for word in words if word = selected_word or includes(used_words, word)]
; label=Generate}
{=selected_word}