DEV Community

Mehul Lakhanpal
Mehul Lakhanpal

Posted on

Pick a random element from an array

Alt Text

Thanks for reading 💙

Follow @codedrops.tech for daily posts.

InstagramFacebook

Micro Learning ● Web Development ● Javascript ● MERN stack

www.codedrops.tech

Top comments (1)

Collapse
 
ml318097 profile image
Mehul Lakhanpal

Ik could have picked a random element up to array's length :p