0xbc89166f…a698sent to0x0a1bbd57…3676·#19,239,803·view on Etherscan
class Random{constructor(){this.useA=!1;let e=function(e){let n=parseInt(e.substring(0,8),16),t=parseInt(e.substring(8,16),16),r=parseInt(e.substring(16,24),16),a=parseInt(e.substring(24,32),16);return function(){n|=0,t|=0,r|=0,a|=0;let e=(n+t|0)+a|0;return a=a+1|0,n=t^t>>>9,t=r+(r<<3)|0,r=r<<21|r>>>11,r=r+e|0,(e>>>0)/4294967296}};this.prngA=new e(tokenData.hash.substring(2,34)),this.prngB=new e(tokenData.hash.substring(34,66));for(let e=0;e<1e6;e+=2)this.prngA(),this.prngB()}random_dec(){return this.useA=!this.useA,this.useA?this.prngA():this.prngB()}random_num(e,n){return e+(n-e)*this.random_dec()}random_int(e,n){return Math.floor(this.random_num(e,n+1))}random_bool(e){return this.random_dec()<e}random_choice(e){return e[this.random_int(0,e.length-1)]}}function chanceOf(e){return R.random_bool(e)}function genTokenData(e){let n={},t="0x";for(var r=0;r<64;r++)t+=Math.floor(16*Math.random()).toString(16);return n.hash=t,n.tokenId=(1e6*e+Math.floor(1e3*Math.random())).toString(),n}function randomChoice(e){return R.random_choice(e)}function phraseSplitter(e){let n=e.split(" "),t=[],r=0;for(;r<n.length;){let e=R.random_int(1,3),a=[];for(;a.length<e&&r<n.length;)a.push(n[r]),r++;let o="";for(let e=0;e<a.length;e++){let n=a[e];e<a.length-1?o+=n+" ":o+=n}t.push(o)}return t}function generateDescription(){let e="",n=randomChoice(structures);structures.splice(structures.indexOf(n),1);for(let t=0;t<n.length;t++){let r=!0,a="";switch(n[t]){case"noun":a=randomChoice(noun),noun.splice(noun.indexOf(a),1);break;case"thing":a=randomChoice(thing),thing.splice(thing.indexOf(a),1);break;case"adj":a=randomChoice(adj),adj.splice(adj.indexOf(a),1);break;case"adj_an":a=randomChoice(adj_an),adj_an.splice(adj_an.indexOf(a),1);break;case"adj_mixed":a=randomChoice(adj_mixed),adj_mixed.splice(adj_mixed.indexOf(a),1);break;case"adverb":a=randomChoice(adverb),adverb.splice(adverb.indexOf(a),1);break;case"notes":a=randomChoice(notes).toLowerCase();break;case"desc":a=randomChoice(desc);break;case"season":a=randomChoice(season);break;case"hour":a=randomChoice(hour);break;case"activity":a=randomChoice(activity),activity.splice(activity.indexOf(a),1);break;default:a=n[t]}e+=a,nspc&&nspc.indexOf(n[t+1])>=0&&(r=!1),t<n.length-1&&r&&(e+=" ")}if(chanceOf(.17)){const n=randomChoice(punctuation);e+=n,punctuation.splice(punctuation.indexOf(n),1)}return e}