📅  最后修改于: 2022-03-11 15:03:13.077000             🧑  作者: Mango
/** * Implementation of XorShift * algorithm in JavaScript */
var seed;
function xorShift(){
seed ^= seed << 13;
seed ^= seed >> 17;
seed ^= seed << 5;
return seed;
}