Profile cover photo
Profile photo
Xah Code
226 followers -
Xah's Computer Programing essays and tutorials
Xah's Computer Programing essays and tutorials

226 followers
About
Posts

Post has attachment
I'm planing to stop posting here. Follow me at my programing "collection" instead, here 
https://plus.google.com/collection/4G2BZ
Add a comment...

Post has attachment

Post has attachment
// Fisher-Yates shuffle. can be used on array-like object
function randomizeListInplace (myList) {
    var i = myList.length, j, temp;
    while (--i >= 1) { // --i returns new value
        j = Math.floor( Math.random() * ( i + 1 ) ); // random element up to i, inclusive
        // swap i j
        temp = myList[i];
        myList[i] = myList[j];
        myList[j] = temp;
    }
    return myList;
}
JavaScript: Random Range, Randomize Array
http://xahlee.info/js/javascript_random_number.html
Add a comment...

Post has attachment

Post has attachment

Post has attachment

Post has attachment

Post has attachment

Post has attachment
#linux Control Sound Level with Command Line & Keyboard http://xahlee.info/linux/linux_command_line_volume_control.html 
Add a comment...

Post has attachment
Wait while more posts are being loaded