2.4: random() Function - p5.js Tutorial

2.4: random() Function - p5.js Tutorial

Subscribers:
1,740,000
Published on ● Video Link: https://www.youtube.com/watch?v=POn4cZ0jL-o



Duration: 10:43
93,318 views
0


In this video, I explore the random() function in p5.js and discuss the concept of 'parametric design.' Code: https://thecodingtrain.com/tracks/code-programming-with-p5-js/code/2-variables/4-random

p5.js Web Editor Sketches:
πŸ•ΉοΈ Random Square Design: https://editor.p5js.org/codingtrain/sketches/Sl8ml_Lz8
πŸ•ΉοΈ Random House Exercise: https://editor.p5js.org/codingtrain/sketches/HGq_S0Z5H
πŸ•ΉοΈ Random Points: https://editor.p5js.org/codingtrain/sketches/h7hFqoV6H
πŸ•ΉοΈ Painting Exercise 1: https://editor.p5js.org/codingtrain/sketches/stERy5a1D
πŸ•ΉοΈ Painting Exercise 2: https://editor.p5js.org/codingtrain/sketches/IyyJ1QYKh

πŸŽ₯ Previous video: https://youtu.be/T26OJGjI8qI?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
πŸŽ₯ Next video: https://youtu.be/nicMAoW6u1g?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
πŸŽ₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

References:
πŸ’Ύ random(): https://p5js.org/reference/#/p5/random

Timestamps:
0:00 Welcome back!
0:47 What is the random function?
2:10 Let's try it out!
4:58 What if we use random() in draw?
6:16 Let's try making something else.
7:10 How about using only 1 argument?
7:42 Built in width and height variables.
8:51 Ideas! What could you make?

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

πŸš‚ 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

This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new

#basics #random #variables #p5js #javascript