Shuffle an array in javascript

This code snippet can be use to Shuffle an array in JavaScript.

working example : http://jsfiddle.net/grainier/J4BuD/

How to check whether an array is a sub array of another array in Javascript

Below code snippet can be used to find whether an array is a sub array of another array in JavaScript

Results :