🤖 Coding News ⚡️
27.2K subscribers
2 photos
1 video
807 links
High quality articles, videos, and tutorials about programming 💻

HTML, CSS, Sass, JavaScript, TypeScript, React, Angular, Electron, Node, Vue, GraphQL and other topics 💥

@CodingChat talk with other engineers
@CodingNewsFeedbackBot advertisement
Download Telegram
​​I love generative art, and I frequently use a pseudo-random function to add a bit of noise to an image or behavior, but every time I implement a pseudo-random number function in JavaScript it takes me a second to remember how this works. So I thought I would write a quick post with a few of the most common pseudo-random number functions (henceforth referred to as simply “random” numbers) implemented in both vanilla ES6 and (just for fun) Python 3 as well. Of course there are infinitely many probability distributions and stochastic processes to explore, but I’ll keep this simple and save some useful concepts like Markov chains and coherent noise for another time.

#javascript #python #random