{"id":16845,"date":"2021-07-27T17:53:26","date_gmt":"2021-07-27T21:53:26","guid":{"rendered":"https:\/\/scruss.com\/blog\/?p=16845"},"modified":"2021-07-27T17:55:16","modified_gmt":"2021-07-27T21:55:16","slug":"detail-from-a-million-step-random-walk","status":"publish","type":"post","link":"https:\/\/scruss.com\/blog\/2021\/07\/27\/detail-from-a-million-step-random-walk\/","title":{"rendered":"detail from a million step random walk"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"725\" src=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2021\/07\/million_line_random_walk-detail-1024x725.png\" alt=\"a rectangle made up of many brightly-coloured  line and semicircle sections in a random arrangement\" class=\"wp-image-16846\" srcset=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2021\/07\/million_line_random_walk-detail-1024x725.png 1024w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2021\/07\/million_line_random_walk-detail-320x227.png 320w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2021\/07\/million_line_random_walk-detail-160x113.png 160w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2021\/07\/million_line_random_walk-detail-768x544.png 768w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2021\/07\/million_line_random_walk-detail.png 1181w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>each line can be drawn at 0\u00c2\u00b0, 60\u00c2\u00b0, 120\u00c2\u00b0, \u00e2\u20ac\u00a6, 300\u00c2\u00b0 and can be coloured red, orange, yellow, green, cyan or purple depending on direction. White areas are unfilled sections of the background<\/figcaption><\/figure>\n\n\n\n<p>This is a tiny detail from an unfeasibly large random walk made in <a href=\"http:\/\/people.eecs.berkeley.edu\/~bh\/logo.html\">Berkeley Logo<\/a>. The code looks something like this:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n; random dice walk, with colours for each of six directions\n; scruss, 2021-07\n\nmake &quot;ch {14 6 2 3 13 4}\nmake &quot;dirs {0 60 120 180 240 300}\nmake &quot;sides {1 2 3 4 5 6}\n\nto walk\n  make &quot;throw pick sides\n  setheading item :throw dirs\n  setpencolor item :throw ch\n  forward 20\nend\n\nhideturtle repeat 1000 &#x5B;walk]\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>This is a tiny detail from an unfeasibly large random walk made in Berkeley Logo. The code looks something like this:<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7],"tags":[3291,1548,1384,3292,3293],"class_list":["post-16845","post","type-post","status-publish","format-standard","hentry","category-computers-suck","tag-dice","tag-logo","tag-random","tag-random_walk","tag-ucblogo"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pQNZZ-4nH","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/16845","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/comments?post=16845"}],"version-history":[{"count":1,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/16845\/revisions"}],"predecessor-version":[{"id":16847,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/16845\/revisions\/16847"}],"wp:attachment":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/media?parent=16845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/categories?post=16845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/tags?post=16845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}