@sillyal/dominion
Version:
Representation of Dominion, a deck-building card game created by Donald X. Vaccarino and published by Rio Grande Games.
11 lines • 359 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function shuffle(array) {
var _a;
for (var i = array.length - 1; i > 0; i -= 1) {
var j = Math.floor(Math.random() * (i + 1));
_a = [array[j], array[i]], array[i] = _a[0], array[j] = _a[1];
}
}
exports.shuffle = shuffle;
//# sourceMappingURL=utils.js.map