DEV Community 👩‍💻👨‍💻

Discussion on: Get a Random Element from an Array in JavaScript

Collapse
gaelgthomas profile image
Gaël Thomas Author

Oh, I like the idea! I just tried it, and it seems to work well! Thanks for sharing that! 🙏

I also like the idea of creating a generic function to get a pseudo-random value from a list.