Return to Snippet

Revision: 24561
at March 3, 2010 23:08 by alvincrespo


Initial Code
var totalItems= 10;
function randomlink(){
    return Math.floor(Math.random()*totalItems+1);//return a number between 1 - 10
}

Initial URL

                                

Initial Description

                                

Initial Title
Javascript Random Number Generation (1 - 10)

Initial Tags
javascript

Initial Language
JavaScript