Hi I’m trying to make a bot command to generate 4 random perks for survivor in Dead by Daylight. I already got to this:
$(eval a=$(urlfetch json http://pastebin.com/raw/S6pwgxnB);a[Math.floor(Math.random()*a.length)])
Which results in one of the perks from my list
and this:
$(eval a=$(urlfetch json http://pastebin.com/raw/S6pwgxnB);a[Math.floor(Math.random()*a.length)]) > $(eval a=$(urlfetch json http://pastebin.com/raw/S6pwgxnB);a[Math.floor(Math.random()*a.length)]) > $(eval a=$(urlfetch json http://pastebin.com/raw/S6pwgxnB);a[Math.floor(Math.random()*a.length)]) > $(eval a=$(urlfetch json http://pastebin.com/raw/S6pwgxnB);a[Math.floor(Math.random()*a.length)])
Which is just the same command 4 times.
But these can result in dupes, and I want them all unique, how do I do it?