Jump to content

web development math.random question


ltbaggz

Recommended Posts

recently took on a project, and i have a general development question.  there is a menu being generated from a database, and menu objects are built based on the database information. there is a javascript function that pieces together the information and it creates a link like this

 

parent.frames[2].location.replace(url + '.php' + Math.Random(1));

my question is why the math.Random, what advantages does this have? debugging? if anyone has thoughts on this i would appreciate it.

Link to comment
https://forums.phpfreaks.com/topic/37635-web-development-mathrandom-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.