text: const RetroRandom=function(t){let e=(new Date).getTime().toString();t&&(e=t.toString()+e),t="";for(let r=0;r<10;r++)e[r]||0===e[r]?t+=e[r]:t+=Math.random();const r=Number(t);function n(t){let e=Math.floor(Math.random()*Math.pow(10,t)).toString();for(;e.length<t;)e="0"+e;return e}t=t.split("").map((t=>Number(t)));let o=0,i=n(3),u=n(3),l=n(6),f=n(6),a=n(6),m=0;function h(e){m++,m>25&&(i=n(3),u=n(3),l=n(6),f=n(6),a=n(6),m=0),t[0]=(t[0]+i[o]).toString(),t[0]=Number(t[0][t[0].length-1]);for(let e=1;e<10;e++)t[e]=(t[e]+t[e-1]).toString(),t[e]=Number(t[e][t[e].length-1]);let r="",s=0,g=null;for(let n=u[o];n<u[o]+e;n++){if(s++,s>10){g=e-10;break}r+=n>=10?t[n-10]:t[n]}return g&&(r+=h(g)),o++,o>=3&&(o=0),r}function s(t=0,e=0,r=0,n=0){let i=t.toString(),u=e.toString(),m=0;i.startsWith("-")&&(i=i.replace("-",""),m++),u.startsWith("-")&&(u=u.replace("-",""),m++);let g=Math.min(i.length,u.length),N=Math.max(i.length,u.length),b=N+r,d=Number(h(b)),c=100;for(;Number.isNaN(d)&&c-- >0;)d=Number(h(b));if(Number.isNaN(d))return NaN;d=d.toString();let p="",M=o;for(let t=0;t<N&&(p+=d[t],!(t>=g&&f[M]%2==0&&f[M+3]%2==0));t++)M++,M>=3&&(M=0);if(r>0){let t="",e=o;for(let o=0;o<r&&!(o>=n&&l[e]%2==0&&l[e+3]%2==0);o++)e++,e>=3&&(e=0),t+=d[o+N];""!==t&&(p+="."+t)}if(p=Number(p),Number.isNaN(p))return s(t,e,r,n);if(1===m){if(t<0&&p>Math.abs(t))return p;if(e<0&&p>Math.abs(e))return p;if(t>0&&p>Math.abs(t))return-1*p;if(e>0&&p>Math.abs(e))return-1*p;if(a[o]%2==0||a[o+3]%2==0)return-1*p}else 2===m&&(p*=-1);return p}const g=function(t=0,e=0,r=0,n=0){t>e&&([t,e]=[e,t]),r<n&&([r,n]=[n,r]);let o=s(t,e,r,n);for(;o<t;)o+=t;for(;o>e;)o-=e;if(o<t?o=t:o>e&&(o=e),o=o.toString(),o.includes(".")){for(o=o.split("."),o[1]=o[1].split("");o[1].length>r&&o[1].length>0;)o[1].pop();o[1]=o[1].join(""),o=o.join(".")}return Number(o)};return g.seed=function(){return Number(t.join(""))},g.origSeed=function(){return r},g};"undefined"!=typeof window?window.RetroRandom=RetroRandom:"undefined"!=typeof module&&(module.exports=RetroRandom);