var deck = require('deck'); var xs = deck.shuffle({ a : 10, b : 8, c : 2, d : 1, e : 1, }); console.log(xs);