memoscan
← all memos

Memo 0x1ee2af1e…7eb726 on Ethereum

class Random{constructor(){this.useA=!1;function n(n){let t=parseInt(n.substring(0,8),16),r=parseInt(n.substring(8,16),16),s=parseInt(n.substring(16,24),16),e=parseInt(n.substring(24,32),16);return function(){t|=0,r|=0,s|=0,e|=0;var n=(t+r|0)+e|0;return e=e+1|0,t=r^r>>>9,r=s+(s<<3)|0,s=(s=s<<21|s>>>11)+n|0,(n>>>0)/4294967296}}this.prngA=new n(tokenData.hash.substring(2,34)),this.prngB=new n(tokenData.hash.substring(34,66));for(let n=0;n<1e6;n+=2)this.prngA(),this.prngB()}random_dec(){return this.useA=!this.useA,this.useA?this.prngA():this.prngB()}random_num(n,t){return n+(t-n)*this.random_dec()}random_int(n,t){return Math.floor(this.random_num(n,t+1))}random_bool(n){return this.random_dec()<n}random_choice(n){return n[this.random_int(0,n.length-1)]}}