17
1
Inspiration. Posted with permission.
Print one of the possible XKCD calendar "facts":
You can get the raw text and structure from my APL reference implementation or from Explain XKCD's transcript (including the title text just under the illustration).
Rules
At every decision node, there must be an equal (pseudo-)random chance of each choice.
You may use all uppercase.
You must generate three sentences; a question, a reason, and a title text.
The three sentences should be ended by ?
, .
, and .
respectively, and separated from each other by a single space.
The only extra white-space you may include is one trailing space and/or line break.
Examples
Did you know that the Latest Sunset drifts out of sync with the Zodiac because of time zone legislation in Indiana? Apparently it's getting worse and no one knows why. While it may seem like trivia, it has to be corrected for by GPS satellites.
Did you know that Leap Year happens later every year because of precession of the equator? Apparently scientists are really worried. While it may seem like trivia, it is taken advantage of by high-speed traders.
Did you know that Easter drifts out of sync with the atomic clock in Colorado because of a decree by the pope in the 1500s? Apparently scientists are really worried. While it may seem like trivia, it causes huge headaches for software developers.
@Rod I never said anything about the chart. I said to get the text from my reference implementation (which includes it) or from Explain XKCD (with a note to include the title text). – Adám – 2017-12-19T13:14:30.810
Are leading spaces in the output allowed? – Erik the Outgolfer – 2017-12-19T14:30:45.750
@EriktheOutgolfer No. – Adám – 2017-12-19T14:31:22.463
Related – FryAmTheEggman – 2017-12-19T16:05:06.917
Did you know that shark week happens at the wrong time every year because of an arbitrary decision by Benjamin Franklin? Apparently it causes a predictable increase in car accidents.
I... I mean... I... Okay. – Magic Octopus Urn – 2017-12-19T16:54:25.390Is there a time constraint on how long the program can take to finish running? – Οurous – 2017-12-20T23:24:25.553
@Οurous Not really. Are you intending very long, like after the heat death of the universe? – Adám – 2017-12-21T00:44:13.497
@Adám No, just a few weeks worst-case. A few hours for most random seeds. – Οurous – 2017-12-21T01:00:57.400
My CTO made this neat representation.
– Adám – 2018-01-02T11:53:49.117