Is there a way to short and make this function faster, smaller and better?
function rand() {
var r = Math.floor(Math.random()*array.length);
document.getElementById('obj').innerHTML = array[r];
}
|
|
+ Reply to Thread
Results 1 to 9 of 9
Thread: Shorten this code?
Thread InformationUsers Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) Tags for this Thread |
|
Bookmarks