By roshanbh via roshanbh.com.np Published: Apr 06 2008 / 20:30
.
Ok, I am having a hard time understanding what this is all about. Is the goal of this function to simply get a random number between a min & max? If so, this is one of the worst ways possible. There is simply no need for recursion and setTimeout(): http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Math:random
Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.
Comments
kenman replied ago:
.
kenman replied ago:
Ok, I am having a hard time understanding what this is all about. Is the goal of this function to simply get a random number between a min & max? If so, this is one of the worst ways possible. There is simply no need for recursion and setTimeout():
http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Math:random
Voters For This Link (9)
Voters Against This Link (3)