Distribution of Random Numbers in JavaScript
19th November 2023
Discover why Math.ceil(Math.random()) isn't ideal for random number generation in JavaScript and learn a better method for achieving a fair and evenly distributed range.
Maybe you will find some useful stuff to read about here, but more than likely its just a place for me to reference the things future me forgets!
Discover why Math.ceil(Math.random()) isn't ideal for random number generation in JavaScript and learn a better method for achieving a fair and evenly distributed range.
Closures in JavaScript: Their benefits, and a simple example to illustrate the concept. Boost your JS skills with some foundational knowledge!
I made my first Chrome and FireFox extension to solve a problem for students of Brad Traversy in his courses.
Moving from Create React App to vite? You'll probably want to add some linting to help prevent you screwing up.
How to handle bad responses that include a JSON response and write a small library for the Fetch API