Math || Programming || Art

Point Curry Disco

Whole Tablet, Half Tablet

Posted on Thu 31 August 2017 in misc
• Tagged with Probability, Ipython, Mathematics, Markov Chains, Five Thirty Eight, Riddlerr

Five Thirty Eight - Riddler Express (August 25th)

You take half of a vitamin every morning. The vitamins are sold in a bottle of 100 (whole) tablets, so at first you have to cut the tablets in half. Every day you randomly pull one thing from the bottle — if it’s a whole tablet, you cut it in half and put the leftover half back in the bottle. If it’s a half-tablet, you take the vitamin. You just bought a fresh bottle. How many days, on average, will it be before you pull a half-tablet out of the bottle?

Fooling around with Markovify

Posted on Tue 07 June 2016 in misc
• Tagged with Markov Chains, Markovify, Python, Poetry

Markovify uses Markov chains to generate random semi-plausible sentences based on an existing text.

Read about it here.

Not I:

Found Herself In The Bottle Ketchup-Mess We Love
Get Myself Into It First Gear The Devil Whoo! Message From Our Sponsor 01. Baby Song Red Shoes Go Away Fairytale In …