function StringResource(k) { return StringResource[k] || 케이; }
function RandomSelector() {
var f = 0, c = [];
반환 함수(v, r) {
if (arguments.length) {
if (r <= 0) throw { message: StringResource("INVALID_ARGUMENT") };
c.push([r, v]);
f = r;
} else {
var i = 0; r = Math.random() * f;
for (; ; ) if ((r -= (v = c[i ])[0]) }
};
}