This random number generator Simon built in Processing simultaneously graphs the probability of the values as you “throw the dice”. This is Simon’s own code and what’s more, he has turned it into a truly scientific experiment/observation. Simon programmed the generator to automatically throw the dice every 60 frames a second (i.e. every 1/15th of a second). The graph showing the probability of certain values should increasingly resemble a perfect isoceles triangle the more throws occur, because the probability of you getting 7 is much higher than those of getting 2 or 12.
The perfect triangle was drawn at around 4000 throws.
Simon also experimented with programming the same generator for 3 dice. The graph should then form a bell shaped curve, a parabola, and takes a longer while to shape up. “As the number of dice grows towards infinity, the distribution will change from a uniform distribution to a Gaussian distribution”, – Simon explains.
Simon came up with a tool (a circle where you install a pencil) to draw curved lines. He explains how the curved line actually draws the absolute value of the Sine function sin(x). “Because an absolute value of x is square root of x squared, that means that all negative values cancel out”, says Simon, that’s why the wave looks spiky.
Simon’s tool should probably be improved by making it from thicker material like thick cardboard.
Simon’s live stream last night was a blast. Simon worked on two games on a grid: 15s Puzzle and Connect Four, both in Processing (Java). He had already made the 15s Puzzle before, but built the Connect Four (also called Four in a Row) without any prior preparation.
The stream got lots of views as Daniel Shiffman kindly advertised it again on his Twitter:
Let me also archive the live chat here, to save it from oblivion:
Simon playing his game together with sis:
What shape can roll well, other than a circle (wheel)? Two circles, attached together according to a formula involving a square root of two! Simon made these “wobbly circles” inspired by a Numberphile video where Matt Parker talks about how the ability to roll well (as in a wheel) is caused by the constant height of the center of mass (as opposed to a square wheel, whose center of mass goes zigzagging up and down). Wobbly wheels also have a stable height of their center of mass, hence they roll!
Simon also made a transparent version (with mom’s help):
Simon came up with a function that for bigger inputs approaches Pi. He has seen that the result of a function for infinity ∞ f(infinity) = Pi/4 in a Numberphile video and decided to express the same idea using χ (Chi).
Inspired by yet another Numberphile video, Simon is explaining why it’s impossible to turn a circle into a square with the same area using only the tools that the ancient Greeks had (this is one of the famous unsolvable math problems from Ancient Greece). We have seen, however, that the brilliant Murderous Math team have found a solution to squaring a circle! It was quite difficult to find the link to that exact page on the Murderous Math website (Simon had to dig into the html code to find it), but here it is: murderousmaths.co.uk/books/MMoE/sqcirc.htm
His sister an grandma visiting from snowy Russia making paper snowflakes inspired Simon…
Right is Simon’s sister’s snowflake, left is Simon’s:
Programmed a random number generator to hep him with a card trick. Inspired by Numberphile:
Simon’s 7th live stream on Thursday went great. He has about 230 subscribers at the moment, so there were people watching and posting encouraging comments in the chat. In the very beginning, something went wrong with the OBS software and Simon had to reboot, but he didn’t panic. I saw him telling himself that “everything is going to be all right” and it did!
The topics were:
The random() function, the p5.Vector.random2D() function, core and vector random walks, Random walk with Levy Flight, Self-avoiding random walk, Linear (Monte Carlo) and random distribution and Gaussian distribution with randomGaussian()
Sorry the video was cut off, we’ve recorded this video from our phone, but the phone ran out of memory. Actually, if -1/4 = 3S, can you figure out what S is yourself?
Inspired by a Numberphile video, but Simon added the formulas himself.