{"id":4319,"date":"2022-03-10T16:50:09","date_gmt":"2022-03-10T16:50:09","guid":{"rendered":"https:\/\/ibex.tech\/python\/?p=4319"},"modified":"2023-12-15T15:59:45","modified_gmt":"2023-12-15T15:59:45","slug":"random","status":"publish","type":"post","link":"https:\/\/ibex.tech\/python\/random\/random","title":{"rendered":".Random"},"content":{"rendered":"\n<h5 class=\"wp-block-heading\">Random integer<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>import random\n\n    My_random_int = random.randint(0, 100)   #Generate random value from 0 to 100 (inclusive)<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">Select random entry from a List<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>import random\n\n    random_output = random.choice(my_list)<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Random integer Select random entry from a List<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[340],"tags":[],"class_list":["post-4319","post","type-post","status-publish","format-standard","hentry","category-random"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/comments?post=4319"}],"version-history":[{"count":3,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4319\/revisions"}],"predecessor-version":[{"id":4555,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4319\/revisions\/4555"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/media?parent=4319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/categories?post=4319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/tags?post=4319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}