I'm trying to replace the token "[RANDOMNUMBER]" in a string but my code is not working? I've tried single and double backslashes and it hasn't worked?
var rn = Math.random() + "",
rnd = rn * 10000000000000;
sample string: //ad.amgdgt.com/ads/?t=ap&