Under review

Add a random number to a variable

Robotić 3 years ago updated by Praveen Srinivasaiah (Admin) 3 years ago 7

I need a variable with a random number from 1 to 20. Is there a possibility?

I would do a check on the knowledge of the multiplication table.

Under review

You can create variables but it needs to be assigned some value. Also. functionalities can be added to these variables like add, subtract..

I understand that. I asked if there was a possibility to assign a random number to a variable specified interval.

Is there a possibility to change the variable over random message node?

Excuse me for spending time and thank you very much for the answer.

Otherwise, I am very satisfied with the bot.


I'm afraid, random value can't be assigned to a variable. Yes, it is possible to change the variable value assigned in random message node or any node.

Excuse me for boredom. I'm not ungrateful. This is the last question on this topic because it would mean a lot to me.

I know how to use variable value, but I don't know how to change in random message node. You say "possible to change the variable value assigned in random message node", please tell me how.

I tried everything that came to my mind, but unsuccessfully.

Thank you very much.


In this case, this is how it works:

Assign a variable {resultat} = 23

Later, in a message node, if you need to change this variable, use the function {resulatat} = {resultat} + 1. With this, the new value "24" will get assigned to {resultat}

Does not work, but thank you for everything, I will not burden you anymore.

In the second message node, you need to create a new variable {resultat1} and then add the function {resultat1} = {resultat} + 1.