Robot = {
function formatName(a) {
let b, c;
[a, c] = [Math.floor(a / 1000), a % 1000];
[a, b] = [Math.floor(a / 26), a % 26];
return [
String.fromCharCode(65 + a),
String.fromCharCode(65 + b),
c.toLocaleString("en-US", { minimumIntegerDigits: 3 })
].join("");
}
class Robot {
static forget() {
this._lcg = createLcg();
}
constructor() {
this.reset();
}
reset() {
this.name = formatName(this.constructor._lcg.next().value);
}
}
Robot.forget();
return Robot;
}