let id = ["sxq", "紫鱼", "陆陆", "乱码", "卡布奇诺", "sssora", "妮可", "citrus", "红叶(千里朱音)", "tedu666", "芋頭西米露umi", "nemoma"];
let rand = seed => {
seed = (seed * 9301 + 49297) % 233280;
return seed / (233280.0);
};
let vote = seed => {
if (isNaN(seed)) {
seed = seed.split('').map(x => x.charCodeAt()).reduce((a, b) => a + String(b), 0);
}
const random = Math.floor(rand(seed) * 100000) % id.length;
console.log(id[random]);
};
vote('看看今天该投谁');
discuz的编辑器太难用了,我还是直接这样发吧