example/app.js
function() {
          var i = Math.floor(_listing.length-1 * Math.random());
          return $q.when(_listing[i]);
        }
function() {
          var i = Math.floor(_listing.length-1 * Math.random());
          return $q.when(_listing[i]);
        }
function ( ) { var i = Math . floor ( _listing . length - 1 * Math . random ( ) ) ; return $q . when ( _listing [ i ] ) ; }
Get random item
Get random item