«« Next » « Previous
«« Next » « Previous

Link Details

Link 74250 thumbnail
User 262632 avatar

By roshanbh
via roshanbh.com.np
Published: Apr 06 2008 / 20:30

If you want to display a random number using javascript then here is the tip for you to display the random number in interesting way using javascript.
  • 9
  • 3
  • 1251
  • 326

Comments

Add your comment
User 204084 avatar

kenman replied ago:

0 votes Vote down Vote up Reply

.

User 204084 avatar

kenman replied ago:

0 votes Vote down Vote up Reply

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

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.