You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Javascript easy to use random selectors
Quick Example:easySelector.array.random(["first","second","third"]) => Output => "first"
Features
Select element/elements from an Array
Generate random number with digit number
Select random color
Select random number/numbers
Installation
npm install easyselector
Usage
// Get Element from an Array in Javascriptconst{ easySelector }=require('easyselector');constdummyArray=["Josef","Quaresma","Atiba","Emre","Rachid"]constrandomArrayValue=easySelector.array.random(dummyArray)// => Output Random = "Emre" // Get Multiple Random Elements from an Array in JavaScriptconstrandomArrayMultipleValue=easySelector.array.randomMultiple(dummyArray,{unique: true,select: 3})// => Output Random = ["Quaresma","Rachid","Josef"]