DEV Community

loading...

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

Collapse
willem640 profile image
willem640

This is a really cool article, but I'd advise anyone not to use these. If you really need integer random numbers and don't want to convert from a floating point, use a library. If you're doing something serious. Otherwise these low-quality PRNGs are a cool thing to use to simplify and spice up your code that will never ever make it into a public website or a business.

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

Hi, my code is a basic implementation of the algorithms. It doesn't cover all the parameters required for a strong PRNG. I wanted to show how easy it is to implement these algorithms 🙂

Collapse
willem640 profile image
willem640

It's a cool article regardless, I just wouldn't like to use them in anything significant for the reasons your provided. But it's still cool! 😊