I want to rotate my entire array, for example:
[1,2,3,4] becomes [3,4,1,2]
my current function is:
function shuffle(o){ 
    for(i = 0; i<Math.floor((Math.random() * o.length)); i++){
        o.push(o.shift());
    }
};
Please tell me what I am doing wrong.
 
     
    