Sha256: 529920317421c1658e429deeb0fda11988093e608c81e45e0fc9f12894ca5cbf

Contents?: true

Size: 184 Bytes

Versions: 4

Compression:

Stored size: 184 Bytes

Contents

d3.shuffle = function(array) {
  var m = array.length, t, i;
  while (m) {
    i = Math.random() * m-- | 0;
    t = array[m], array[m] = array[i], array[i] = t;
  }
  return array;
};

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
stripchart-0.0.3 lib/stripchart/public/components/d3/src/arrays/shuffle.js
stripmem-0.0.3 lib/stripmem/public/components/d3/src/arrays/shuffle.js
stripmem-0.0.2 lib/stripmem/public/components/d3/src/arrays/shuffle.js
stripmem-0.0.1 lib/stripmem/public/components/d3/src/arrays/shuffle.js