Your first Pastebin link must use the variable a
, your second one must use the variable b
, the third one must use the variable c
, etc…
r=[a,b,c]
combines all the random outputs from your various pastes, and then we pick a random output out of these.
If you have more than 3 pastes, add d
, e
, etc.
I can’t be clearer than this.
If you still don’t understand, we’ll do it my way, I tried to adapt my code to your pastes, but you’re going to have to update your pastes to reflect my code, just so we get a clean and clear code.
Your Pastebin should look like this, nothing more:
`(HC) - New York`,
`(HC) - Detroit`,
`(HC) - Bronx`,
`(HC) - Hollywood`,
`(HC) - The Road to New Orleans`,
`(HC) - Sights on Sin City`,
`(HC) - Highspeed Takedown`,
`(HC) - Los Angeles`,
`(HC) - Latrells Car Part 1`,
`(HC) - Latrells Car Part 2`,
`(HC) - White Rock Hills`,
`(HC) - Maine Highlands East`,
`(HC) - South Trip`,
`(HC) - Big Land`,
`(HC) - Going to Vegas`,
`(HC) - Dallas`
Then the code is the following:
$(eval
a=$(urlfetch json FIRST_RAW_PASTEBIN_LINK).split(`,`);
b=$(urlfetch json SECOND_RAW_PASTEBIN_LINK).split(`,`);
...
n=$(urlfetch json N_RAW PASTEBIN_LINK).split(`,`);
z=a.concat(b,...,n);
z[Math.floor(Math.random()*z.length)];
)
So if you have 4 pastes:
$(eval
a=$(urlfetch json FIRST_RAW_PASTEBIN_LINK).split(`,`);
b=$(urlfetch json SECOND_RAW_PASTEBIN_LINK).split(`,`);
c=$(urlfetch json THIRD_RAW_PASTEBIN_LINK).split(`,`);
d=$(urlfetch json FOURTH_RAW_PASTEBIN_LINK).split(`,`);
z=a.concat(b,c,d);
z[Math.floor(Math.random()*z.length)];
)
Another solution would be to create a new paste where you combine them all and just get a random output from there.