{"id":175,"date":"2016-05-13T07:13:27","date_gmt":"2016-05-13T05:13:27","guid":{"rendered":"http:\/\/www.launet.ch\/blog\/?p=175"},"modified":"2016-05-13T13:07:51","modified_gmt":"2016-05-13T11:07:51","slug":"friday-the-13th","status":"publish","type":"post","link":"http:\/\/www.launet.ch\/blog\/uncategorized\/friday-the-13th\/","title":{"rendered":"Friday the 13th"},"content":{"rendered":"<p>There is a theorie about the frightened Friday the 13th: Reason for the increased number of accidents happend on a Fridays which falls on the 13th day in the month, should be due to the fact there are more Fridays falling on a 13th in the month than on other days.<\/p>\n<p>But&#8230;is it true&#8230;and how to prove it?<br \/>\nSure! With CODE!<\/p>\n<pre>A piece of VB.net code should show the truth.<\/pre>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\nDim aDays(31) As Integer\r\n\r\nSub Main()\r\n\r\n  Dim dt As New Date(1600, 1, 1)\r\n\r\n  While dt.Date &lt;&gt; Today\r\n    If dt.DayOfWeek = DayOfWeek.Friday Then\r\n      aDays(dt.Day) = aDays(dt.Day) + 1\r\n    End If\r\n    dt = dt.AddDays(1)\r\n  End While\r\n\r\n  For i As Integer = 1 To aDays.Length - 1\r\n    Console.WriteLine(Str(i) &amp; &quot; = &quot; &amp; aDays(i) &amp; &quot; times&quot;)\r\n  Next\r\n\r\n  Console.ReadLine()\r\n\r\nEnd Sub\r\n<\/pre>\n<p>And the console output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-178 size-full\" src=\"http:\/\/www.launet.ch\/blog\/wp-content\/uploads\/2016\/05\/friday13th.png\" alt=\"Results of Friday 13th console output\" width=\"677\" height=\"438\" srcset=\"http:\/\/www.launet.ch\/blog\/wp-content\/uploads\/2016\/05\/friday13th.png 677w, http:\/\/www.launet.ch\/blog\/wp-content\/uploads\/2016\/05\/friday13th-300x194.png 300w\" sizes=\"auto, (max-width: 677px) 100vw, 677px\" \/><\/p>\n<p>Its a lie! In 416 years Fridays don&#8217;t falling exceptional often on the 13th of a month!<\/p>\n<ul>\n<li><span lang=\"la\" xml:lang=\"la\"><b>&#8211; quod erat demonstrandum<\/b><\/span> &#8211;<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>There is a theorie about the frightened Friday the 13th: Reason for the increased number of accidents happend on a Fridays which falls on the 13th day in the month, should be due to the fact there are more Fridays falling on a 13th in the month than on other days. But&#8230;is it true&#8230;and how [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10,9,11],"class_list":["post-175","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-absurdity","tag-programming","tag-vb"],"_links":{"self":[{"href":"http:\/\/www.launet.ch\/blog\/wp-json\/wp\/v2\/posts\/175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.launet.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.launet.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.launet.ch\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.launet.ch\/blog\/wp-json\/wp\/v2\/comments?post=175"}],"version-history":[{"count":16,"href":"http:\/\/www.launet.ch\/blog\/wp-json\/wp\/v2\/posts\/175\/revisions"}],"predecessor-version":[{"id":194,"href":"http:\/\/www.launet.ch\/blog\/wp-json\/wp\/v2\/posts\/175\/revisions\/194"}],"wp:attachment":[{"href":"http:\/\/www.launet.ch\/blog\/wp-json\/wp\/v2\/media?parent=175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.launet.ch\/blog\/wp-json\/wp\/v2\/categories?post=175"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.launet.ch\/blog\/wp-json\/wp\/v2\/tags?post=175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}