{"id":818,"date":"2022-09-07T15:36:11","date_gmt":"2022-09-07T13:36:11","guid":{"rendered":"https:\/\/support.botnation.ai\/generate-a-random-value-for-a-variable\/"},"modified":"2026-01-02T15:27:34","modified_gmt":"2026-01-02T14:27:34","slug":"generate-a-random-value-for-a-variable","status":"publish","type":"support","link":"https:\/\/botnation.ai\/en\/support\/generate-a-random-value-for-a-variable\/","title":{"rendered":"Generate a random value for a variable"},"content":{"rendered":"<p>This feature allows you to give a variable a random value between a minimum value and a maximum value.<\/p>\n\n\n\n<p>If the concept of a variable is totally abstract for you, I advise you to consult the following article before continuing: <a href=\"https:\/\/botnation.ai\/en\/support\/all-about-variables\/\">All about {{\u2026}} variables<\/a>.<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">1. Use<\/h2>\n\n\n\n<p>Among the construction features, click on \u201cVariables\u201d and then, in the menu that opens, click on \u201cRandom\u201d.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2022\/09\/Aleatoire_00_UK-1024x604.png.webp\" alt=\"\" class=\"wp-image-823\"><\/figure>\n\n\n\n<p>Example of use:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2022\/09\/image-133.png.webp\" alt=\"\" class=\"wp-image-825\"><\/figure>\n<\/div>\n\n\n<p>Each time the bot executes this feature, the variable<em>\u201cmyVariable<\/em>\u201d will have a random value between 1 and 10:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2022\/09\/image-134.png.webp\" alt=\"\" class=\"wp-image-827\"><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">2. Options<\/h2>\n\n\n\n\n","protected":false},"featured_media":0,"template":"","meta":{"_acf_changed":false},"categorie-support":[194,222,221],"class_list":["post-818","support","type-support","status-publish","hentry","categorie-support-features","categorie-support-variables-en","categorie-support-web-chatbot-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/support\/818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/support"}],"about":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/types\/support"}],"wp:attachment":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/media?parent=818"}],"wp:term":[{"taxonomy":"categorie-support","embeddable":true,"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/categorie-support?post=818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}