DEV Community


Discussion on: 3 Amazing ways to generate random numbers without Math.random()

netmailgopi profile image
Gopi Ravi

I like this blog, I like how you ELI5 PRNG concepts and even implement them. While all that's cool, I'm of the opinion that one shouldn't be generally replacing/implementing Math.Rand unless necessary. Abstraction is good, usually.

svijaykoushik profile image
Vijay Koushik, S. 👨🏽‍💻 Author

Thank you ☺. You are right. You can't use the code directly in production.The goal of this post is to show how easy it is to implement the PRNGs and I've left the implementation details to the readers.