Uploaded March 2021 | Updated November 2026, 10 hours ago
π₯§ Happy Pi Day 2021! This year I estimate the digits of Ο with random numbers and the probability of two integers being co-prime. thecodingtrain.com/challenges/161-estimating-pi-from-random-numbers
π₯ Matt Parker's Generating Ο from 1,000 random numbers: youtu.be/RZBhSi_PwHU
πΆ Pi Day song by Will from America: willfromamerica.com
π¨ Character design and animations by Jason Heglund jasonheglund.com
π¬ Editing by Mathieu Blanchette
p5.js Web Editor Sketches:
πΉοΈ Estimating Ο from Random Numbers: editor.p5js.org/codingtrain/sketches/FiOG6uajS
πΉοΈ Estimating Ο from Digits of Ο: editor.p5js.org/codingtrain/sketches/x0eikODKm
π₯ Previous video: youtu.be/Rr-5HiXquhw?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ All videos: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
Links discussed in this video:
π Probability of Two Integers Being Coprime: cut-the-knot.org/m/Probability/TwoCoprime.shtml
π Euclidean Algorithm: en.wikipedia.org/wiki/Euclidean_algorithm
π A Million Random Digits with 100,000 Normal Deviates: rand.org/pubs/monograph_reports/MR1418.html
π Quantum random numbers: https://qrng.anu.edu.au/
Other videos mentioned in this video:
Timestamps:
0:00 Happy Pi Day!
1:26 Explain! What does co-prime mean?
4:21 Explain! Euclid's Algorithm
8:40 Example! Finding the greatest common divisor.
9:55 Code! gcd() function with Euclid's Algorithm.
12:23 Code! Let's load the random digits.
14:39 Code! Let's use draw() for our loop.
16:13 Code! Co-prime or Co-factor?
17:44 Explain! How we are going to estimate Ο.
18:50 Code! Estimating Ο.
21:59 Code! Trying with digits of Ο.
22:54 Ideas! Thanks for watching!
π Website: thecodingtrain.com
πΎ Share Your Creation! thecodingtrain.com/Guides/community-contribution-guide.html
π© Suggest Topics: github.com/CodingTrain/Rainbow-Topics
π‘ GitHub: github.com/CodingTrain
π¬ Discord: discord.gg/hPuGy2g
π Membership: youtube.com/thecodingtrain/join
π Store: standard.tv/codingtrain
π Books: amazon.com/shop/thecodingtrain
ποΈ Twitter: twitter.com/thecodingtrain
πΈ Instagram: instagram.com/the.coding.train
π₯ Coding Challenges: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: p5js.org
π p5.js Web Editor: editor.p5js.org
π Processing: processing.org
π Code of Conduct: github.com/CodingTrain/Code-of-Conduct
πΆPi Day song by twitter.com/WillFromAmerica
πΆMusic by Epidemic Sound: epidemicsound.com/creator
#PiDay #PiDay2021
π₯§ Happy Pi Day 2021! This year I estimate the digits of Ο with random numbers and the probability of two integers being co-prime. thecodingtrain.com/challenges/161-estimating-pi-from-random-numbers
π₯ Matt Parker's Generating Ο from 1,000 random numbers: youtu.be/RZBhSi_PwHU
πΆ Pi Day song by Will from America: willfromamerica.com
π¨ Character design and animations by Jason Heglund jasonheglund.com
π¬ Editing by Mathieu Blanchette
p5.js Web Editor Sketches:
πΉοΈ Estimating Ο from Random Numbers: editor.p5js.org/codingtrain/sketches/FiOG6uajS
πΉοΈ Estimating Ο from Digits of Ο: editor.p5js.org/codingtrain/sketches/x0eikODKm
π₯ Previous video: youtu.be/Rr-5HiXquhw?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ All videos: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
Links discussed in this video:
π Probability of Two Integers Being Coprime: cut-the-knot.org/m/Probability/TwoCoprime.shtml
π Euclidean Algorithm: en.wikipedia.org/wiki/Euclidean_algorithm
π A Million Random Digits with 100,000 Normal Deviates: rand.org/pubs/monograph_reports/MR1418.html
π Quantum random numbers: https://qrng.anu.edu.au/
Other videos mentioned in this video:
Timestamps:
0:00 Happy Pi Day!
1:26 Explain! What does co-prime mean?
4:21 Explain! Euclid's Algorithm
8:40 Example! Finding the greatest common divisor.
9:55 Code! gcd() function with Euclid's Algorithm.
12:23 Code! Let's load the random digits.
14:39 Code! Let's use draw() for our loop.
16:13 Code! Co-prime or Co-factor?
17:44 Explain! How we are going to estimate Ο.
18:50 Code! Estimating Ο.
21:59 Code! Trying with digits of Ο.
22:54 Ideas! Thanks for watching!
π Website: thecodingtrain.com
πΎ Share Your Creation! thecodingtrain.com/Guides/community-contribution-guide.html
π© Suggest Topics: github.com/CodingTrain/Rainbow-Topics
π‘ GitHub: github.com/CodingTrain
π¬ Discord: discord.gg/hPuGy2g
π Membership: youtube.com/thecodingtrain/join
π Store: standard.tv/codingtrain
π Books: amazon.com/shop/thecodingtrain
ποΈ Twitter: twitter.com/thecodingtrain
πΈ Instagram: instagram.com/the.coding.train
π₯ Coding Challenges: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: p5js.org
π p5.js Web Editor: editor.p5js.org
π Processing: processing.org
π Code of Conduct: github.com/CodingTrain/Code-of-Conduct
πΆPi Day song by twitter.com/WillFromAmerica
πΆMusic by Epidemic Sound: epidemicsound.com/creator
#PiDay #PiDay2021
![Coding Train Live: Riding the Oregon Trail 1
π‘Sign up for the CuriosityStream + Nebula bundle with a 26% exclusive discount ($14.79 for a full year!) at https://curiositystream.com/choochoo. To access my Nebula class, upgrade for $1 per month or $10 for year!
Launching my next project, a p5.js port of the original Apple ][ Oregon Trail game!
π» AppleSoft BASIC 3D Cube https://thecodingtrain.com/challenges//175-3D-cube-applesoft-basic
π» Oregon Trail repo https://github.com/shiffman/Oregon-Trail
0:00 Waiting to Start
6:36 Hello everyone!
23:50 Recent announcements in Discord
25:17 New shorts
30:41 Passengers Showcases
35:03 Design System International Coding Train website case study
45:58 Apple ][ 3D cube challenge
51:43 Comments on Apple ][ 3D cube challenge
1:02:26 My Nebula class What is Code?
1:04:15 CuriosityStream + Nebula bundle
1:27:49 Play The Oregon Trail game
2:05:25 Oh No!
2:08:47 Congratulations! You have made it to Oregon
2:19:04 Create repo for Oregon Trail port to p5.js
Links Discussed:
New Shorts
βΆοΈ YT https://www.youtube.com/shorts/Pfb9IPlP0hA
β° TikTok https://www.tiktok.com/@codingtrain
Featured Showcases:
π¦ https://twitter.com/thecodingtrain/
πΈ https://www.instagram.com/the.coding.train/
Coding Train website case study:
π https://designsystems.international/work/the-coding-train/
π Website: http://thecodingtrain.com/
πΎ Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
π‘ GitHub: https://github.com/CodingTrain
π¬ Discord: https://discord.gg/hPuGy2g
π Membership: http://youtube.com/thecodingtrain/join
π Store: https://standard.tv/codingtrain
ποΈ Twitter: https://twitter.com/thecodingtrain
πΈ Instagram: https://www.instagram.com/the.coding.train/
π₯ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: https://p5js.org
π p5.js Web Editor: https://editor.p5js.org/
π Processing: https://processing.org
π Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct
#p5js #oregontrail #game Coding Train Live: Riding the Oregon Trail 1](https://i.ytimg.com/vi/EzYDNydDUfc/mqdefault.jpg)









