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.

Instagram ● Facebook

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