Pick Random Block not working on the translate extension.

id: 749472

category: Bugs and Glitches

posts: 3

cravemitt cravemitt loading
So I am working on something.
I am trying to make it easier by making the language random when it translates.
However, instead of doing a random language, it just does only English.

Is this a bug or can I not use pick random on the translate extension?
And if it is a bug, what should I do?
But if it is not a bug, what is a work around?
CST1229 CST1229 loading
That's not how it works. If you just do
translate [] to (pick random (1) to (10)) :: extension reporter
it would try translating the text to the language that is a random number between 1 and 10, which does not exist.
Instead you should make a list with every language and then use the item of list block:
translate [] to (item (pick random (1) to (length of [languages v])) of [languages v]) :: extension reporter
medians medians loading

CST1229 wrote:

That's not how it works. If you just do
translate [] to (pick random (1) to (10)) :: extension reporter
it would try translating the text to the language that is a random number between 1 and 10, which does not exist.
Instead you should make a list with every language and then use the item of list block:
translate [] to (item (pick random (1) to (length of [languages v])) of [languages v]) :: extension reporter
Couldn't you just select the random option for the languages list?