{"id":2687,"date":"2009-09-17T15:46:43","date_gmt":"2009-09-17T20:46:43","guid":{"rendered":"http:\/\/www.theoreti.ca\/?p=2687"},"modified":"2009-09-17T15:46:43","modified_gmt":"2009-09-17T20:46:43","slug":"import-random","status":"publish","type":"post","link":"https:\/\/theoreti.ca\/?p=2687","title":{"rendered":"import random"},"content":{"rendered":"<p><a href=\"http:\/\/lenz.unl.edu\/wordpress\/\">Stephen Ramsay<\/a> sent me one of my first Python programs that I wrote in response to his telling me about <a href=\"http:\/\/www.foo.be\/docs\/tpj\/issues\/vol5_1\/tpj0501-0012.html\">Perl poems<\/a>. No doubt I was also influenced by Jerry McGann and his ideas on deformation.<\/p>\n<pre>#!\/usr\/bin\/python\r\n\r\nimport random\r\n\r\ndef Random_Means(Words):\r\n    return random.randrange(len(Words))\r\n\r\nHow_Much = [\"How much\", \"All\", \"Some\", \"Every\", \"The\", \"No\"]\r\nOf_What = [\"interpretation\", \"rhetoric\", \"fiction\", \"fabrication\",\r\n\t \"deformation\",\"representation\"]\r\nCould_Be = [\"could be\", \"was\", \"is\", \"will be\", \"would be\"]\r\nAt_End = [\".\", \"!\", \"?\"]\r\n\r\nAll = Of_What[Random_Means(Of_What)]\r\nInterpretation = Could_Be[Random_Means(Could_Be)]\r\nIs = How_Much[Random_Means(How_Much)]\r\nJust = Of_What[Random_Means(Of_What)]\r\nDeformation = At_End[Random_Means(At_End)]\r\n\r\nprint Is + \" \" + All + \" \" + Interpretation + \" \" + Just + Deformation #?<\/pre>\n<p>This playful exercise then led to <a href=\"http:\/\/www.geoffreyrockwell.com\/publications\/originalU4\/question.html\">Untitled #4<\/a> which led to <a href=\"http:\/\/www.geoffreyrockwell.com\/publications\/u4.4.pdf\">our dialogue with the same name<\/a> which led to the <a href=\"http:\/\/lenz.unl.edu\/wordpress\/?p=104\">Animation<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Stephen Ramsay sent me one of my first Python programs that I wrote in response to his telling me about Perl poems. No doubt I was also influenced by Jerry McGann and his ideas on deformation. #!\/usr\/bin\/python import random def Random_Means(Words): return random.randrange(len(Words)) How_Much = [&#8220;How much&#8221;, &#8220;All&#8221;, &#8220;Some&#8221;, &#8220;Every&#8221;, &#8220;The&#8221;, &#8220;No&#8221;] Of_What = [&#8220;interpretation&#8221;, &hellip; <a href=\"https:\/\/theoreti.ca\/?p=2687\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">import random<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,24,6],"tags":[],"class_list":["post-2687","post","type-post","status-publish","format-standard","hentry","category-literature","category-markup-and-text-representation","category-playful-or-cool"],"_links":{"self":[{"href":"https:\/\/theoreti.ca\/index.php?rest_route=\/wp\/v2\/posts\/2687","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theoreti.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theoreti.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theoreti.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theoreti.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2687"}],"version-history":[{"count":1,"href":"https:\/\/theoreti.ca\/index.php?rest_route=\/wp\/v2\/posts\/2687\/revisions"}],"predecessor-version":[{"id":2688,"href":"https:\/\/theoreti.ca\/index.php?rest_route=\/wp\/v2\/posts\/2687\/revisions\/2688"}],"wp:attachment":[{"href":"https:\/\/theoreti.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2687"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theoreti.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2687"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theoreti.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}