Skip to main content
Participating Frequently
May 8, 2008
Question

i need to append a random string to a loadVariablesNum file...

  • May 8, 2008
  • 1 reply
  • 268 views
i need a little help creating a random (2 digit?) string to append to this html call... if someone wouldn't mind helping me with this...

url = "xxxxx";
loadVariablesNum(url+"_main.html", 0);

something like:

string = "whatever()";
url = "xxxxx";
loadVariablesNum(url+"_main.html?"+string, 0);

i'm guessing...?



thanks much,
GN
This topic has been closed for replies.

1 reply

glenn_phpAuthor
Participating Frequently
May 8, 2008
will this work:

end = "Math.floor(Math.random() * 10) + 1";
loadVariablesNum(url+"_main.html?"+end, 0);

?