{"id":3510,"date":"2009-09-14T16:11:43","date_gmt":"2009-09-14T16:11:43","guid":{"rendered":"http:\/\/www.flubu.com\/blog\/?p=3510"},"modified":"2009-09-14T16:11:43","modified_gmt":"2009-09-14T16:11:43","slug":"any-number-theorists-out-there","status":"publish","type":"post","link":"https:\/\/www.flubu.com\/blog\/2009\/09\/14\/any-number-theorists-out-there\/","title":{"rendered":"Any number theorists out there?"},"content":{"rendered":"<p>Based on Derren Brown&#8217;s magical formula to win on the lottery, I hacked together a little bit of code to try and win the upcoming EuroMillion draw (yes, I know I&#8217;m sad).<\/p>\n<p>The code generates random tickets with 5 unique numbers between 1 and 50 and 2 potentially non-unique numbers between 1 and 9. For example:<\/p>\n<p>Ticket{numbers=[1, 14, 17, 21, 28], stars=[5, 2]}<br \/>\nTicket{numbers=[2, 6, 8, 25, 43], stars=[1, 2]}<br \/>\nTicket{numbers=[12, 23, 30, 36, 41], stars=[5, 4]}<br \/>\nTicket{numbers=[8, 19, 28, 37, 41], stars=[5, 9]}<br \/>\nTicket{numbers=[6, 20, 22, 28, 30], stars=[5, 6]}<br \/>\nTicket{numbers=[2, 3, 33, 36, 40], stars=[9, 2]}<br \/>\nTicket{numbers=[20, 26, 30, 39, 50], stars=[6, 5]}<br \/>\nTicket{numbers=[11, 13, 22, 30, 38], stars=[3, 6]}<br \/>\nTicket{numbers=[10, 14, 17, 45, 47], stars=[8, 7]}<\/p>\n<p>You&#8217;ll notice that the numbers are sorted in increasing order, except for the stars. If you then take the average of the numbers at each position, you&#8217;ll get the &#8220;winning&#8221; number, or so the magic goes.<\/p>\n<p>The interesting bit though, which I&#8217;m curious about, is that if you generate more than 100 or so tickets in one go, the average is always the same. Why is this, and does it make sense?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Based on Derren Brown&#8217;s magical formula to win on the lottery, I hacked together a little bit of code to try and win the upcoming EuroMillion draw (yes, I know I&#8217;m sad). The code generates random tickets with 5 unique numbers between 1 and 50 and 2 potentially non-unique numbers between 1 and 9. For&#8230;<\/p>\n<p class=\"more-link-wrap\"><a href=\"https:\/\/www.flubu.com\/blog\/2009\/09\/14\/any-number-theorists-out-there\/\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &ldquo;Any number theorists out there?&rdquo;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[17,132],"class_list":["post-3510","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-geek","tag-random-shit"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3u9vK-UC","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/posts\/3510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/comments?post=3510"}],"version-history":[{"count":2,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/posts\/3510\/revisions"}],"predecessor-version":[{"id":3512,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/posts\/3510\/revisions\/3512"}],"wp:attachment":[{"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/media?parent=3510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/categories?post=3510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flubu.com\/blog\/wp-json\/wp\/v2\/tags?post=3510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}