FAST Random in 3 LINES OF CODE // Ray Tracing series @TheCherno
FAST Random in 3 LINES OF CODE // Ray Tracing series  @TheCherno
Uploaded June 2023 | Updated November 2026, 6 hours ago
To try everything Brilliant has to offer—free—for a full 30 days, visit brilliant.org/TheCherno. The first 200 of you will get 20% off Brilliant’s annual premium subscription!

🧭 FOLLOW ME
Instagram ► instagram.com/thecherno
Twitter ► twitter.com/thecherno
Twitch ► twitch.tv/thecherno

📚 Random number articles:
► reedbeta.com/blog/quick-and-easy-gpu-random-numbers-in-d3d11
► reedbeta.com/blog/hash-functions-for-gpu-rendering

Learn C++ with my series ► youtube.com/watch?v=18c3MTX0PK0&list=PLlrATfBNZ98dudnM48yfGUldqGD0S4FFb

📚 RESOURCES (in order of complexity)
🟢 Ray Tracing in One Weekend series ► raytracing.github.io
🟡 Scratch a Pixel ► scratchapixel.com
🔴 Physically Based Rendering: From Theory to Implementation ► amzn.to/3y2bGK7

💾 SOFTWARE you'll need installed to follow this series
Visual Studio 2022 ► visualstudio.microsoft.com
Git ► git-scm.com/downloads
Vulkan SDK ► vulkan.lunarg.com

📚 CHAPTERS
0:00 - What’s the deal with random numbers anyway
4:07 - Series spoilers
5:50 - Your math dealer
7:21 - Easy random number functions
9:50 - Implementation
16:47 - Results

Welcome to the exciting new Ray Tracing Series! Ray tracing is very common technique for generating photo-realistic digital imagery, which is exactly what we'll be doing in this series. Aside from learning all about ray tracing and the math to goes into it, as well as how to implement it, we'll also be focusing on performance and optimization in C++ to make our renderer as efficient as possible. We'll eventually switch to using the GPU instead of the CPU (using Vulkan) to run our ray tracing algorithms, as this will be much faster that using the CPU. This will also be a great introduction to leveraging the power of the GPU in the software you write. All of the code episode-by-episode will be released, and if you need help check out the raytracing-series channel on my Discord server. I'm really looking forward to this series and I hope you are too! ❤️

Hazel ► hazelengine.com
🕹️ Play our latest game FREE (made in Hazel!) ► studiocherno.itch.io/dichotomy

🌏 Need web hosting? ► hostinger.com/cherno

💰 Links to stuff I use:
⌨ Keyboard ► geni.us/T2J7
🐭 Mouse ► geni.us/BuY7
💻 Monitors ► geni.us/wZFSwSK

This video is sponsored by Brilliant.
FAST Random in 3 LINES OF CODE // Ray Tracing series2000 HOUR 2D Game Engine! // Code ReviewHow to Properly Setup C++ ProjectsPATH TRACER made by 15-YEAR-OLD in C++ OpenGL! // Code ReviewDEV LOG #1Rendering Sprite Pixels in C++Materials and Physically Based Rendering // Ray Tracing series40 Days.5 Easy Ways to Improve This C++ CodeThe Most Professional C++ Project Ive Ever Reviewed // Code ReviewHow Assets/3D Meshes Work in my Game Engine #Hazel #GameEngine #ShortsI HATE premature optimization is the root of all evil (sometimes)
The Cherno |

FAST Random in 3 LINES OF CODE // Ray Tracing series

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER