For Chatbot enthusiasts and alike that would like to create let's say a dice game per se, you could make use of the random function. So that it randomly picks a number for example between 0 and 12 and then messages that number to a user in the respective Chatbot platform as the response.
Level Difficulty - Easy
How to set it up
You can use a random variable and floor() function for it, for example as shown in the picture example below:
Firstly depending on which model you will be setting this up in here is the general way of how to set it up in any responsive module that you will be using.
1. Head over to the math function x2 as shown in the picture above.
2. Under the Math functions tab, select the floor function as this will allow one to always round down to the nearest integer, as you will see.
3. Under the Math functions tab in between the brackets of the floor function select the random attribute making sure that it is in between the brackets as shown in the picture above.
4. Use the * (Multiplication operator) within the brackets of the floor function as shown in the picture example above and then place the number 12 in it as this will demarcate the range of the diceroll.