Javascript Tutorial
Generating a random number in JavaScript
Learn how to generate a random number in java script
General »
Top 20 Similar Javascript Tutorials
Generating weighed random numbers
This tutorial is about generating weighed random numbers in JavaScript
General »
Random Number
Pass a range of numbers to this JavaScript function and it will return a random number within that range. For example, passing the range of [1, 158] would return a number such as 37, 141, 18, etc. Awesome!
General »
Random Number
The computer will thinks of a random number between 0 and 49. Just guess it! Higher and lower hints included!
General »
Write Out Number
This script takes a number and converts it to its English equivalent. If you enter 45678 in the number box and click the appropriate button, Forty Five Thousand Six Hundred Seventy Eight appears in the lower box.
General »
Number Countdown
This script initiates a countdown based on the number you enter and ends at zero.
Format Phone Number
This script will format a telephone number entered into a text box. Numbers can be entered as 1234567890 and will automatically be formatted as (123)456-7890.
Forms »
Guess-A-Number Game
Play the JavaScript version of Guess-A-Number. First, select a number range and then try to guess the number the computer has chosen.
General »
Random Sentences
Use JavaScript to write a random sentence to your web page. Unlike the other random scripts that pick one of 60, this script NEVER uses the same sentence twice! It picks a new subject, verb, and object combination for each page load.
General »
Random Quips
Of all the random message JavaScripts here at TJS, I probably like this one the most. It's hilarious! The JavaScript will randomly pick and write a quote to your web page. They're all funny! You'll love 'em!
General »
Random Taglines
Ever wondered how to make those cool random title messages? This script will do it for you! The title at the top of the page changes each time the page is loaded. Pretty neat!
General »
Random Name Generator
Creates a random male or female character name for use in a story, movie, play, etc. Cool.
General »
Random Quotes
This is a good script to use for placing a random quote on a page. Once the page is loaded, a random quote will be selected and placed where you'd like it to appear.
Basics »






