How to Create a Useful Random Number in Javascript

Submitted by Web Cash » 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.
Rating: 3.3/5 | 340 clicks | 0 comments | 0 saves | share | report

Share this tutorial

There are a number of different ways to share this tutorial with others. Below are the links to many different social networking and social bookmarking sites- just click on your favorite service and most of the work should be done for you. Other methods of sharing tutorials will come in the future.

digg it · save to del.icio.us · share on facebook · reddit · furl · blinklist · ma.gnolia · pixel groovy