1. CSS
  2. Flash
  3. HTML
  4. Illustrator
  5. Java
  6. JavaScript
  7. Maya
  8. Photography
  9. Photoshop
  10. PHP
  11. Ruby
  12. Ruby on Rails
  13. 3ds Max

JavaScript: How to Create a Useful Random Number in Javascript

  1. Clicks today:
  2. Clicks this month:
  3. Overall rating:

JavaScript » Basics — almost 14 years ago
Javascript's built in randomizer returns a probability - a random value between 0 and 1. You need to do a little extra work to get a random number that's use-able for picking a random item from a list or working into a game design. This tutorial will show you the standard formula for creating a useful random number from that original randm value.


avatarhayedia 5 months ago

I like what you guys are up also. Such clever work and reporting! Keep up the superb works guys I have incorporated you guys to my blogroll. I think it will improve the value of my web site :). More Info At: קידום אתרים

Your Comment

You must be logged in to post a comment.