• Random numbers stream.

    From H E@rob99999999999999999@gmail.com to comp.lang.javascript on Thu Jan 21 22:14:46 2021
    From Newsgroup: comp.lang.javascript

    <html>
    <head>
    <style>
    body {
    height: 96%;
    color:white;
    background-color: lightblue;
    }
    #a1 {
    width: 100%;
    height: 98%;
    font-size: 1vw;
    font-weight: bold;
    overflow-y:hidden;
    line-height:1vw;
    margin-top:-1%;
    }
    p {
    height: 1px;
    }
    </style>
    </head>
    <body>

    <div id="a1">
    </div>
    <script>
    var a1=Math.round(Math.random()*101*100000000)/100000000;
    var a2=Math.round(Math.random()*101*100000000)/100000000;
    var a3=Math.round(Math.random()*101*100000000)/100000000;
    var a4=Math.round(Math.random()*101*100000000)/100000000;
    var a5=Math.round(Math.random()*101*100000000)/100000000;
    var a6=Math.round(Math.random()*101*100000000)/100000000;

    var i=0;
    function a02() {
    setInterval(function(){

    if(i>10000) {
    i=0;
    }
    var a0001=-1;
    var i000001=i; document.getElementById("a1").innerHTML=document.getElementById("a1").innerHTML+"</p>";
    for(var i1=i; i1<i000001+18; i1++) {
    a0001=(-1)*a0001;
    var i01=a0001*(-1)*i1*0.0114643966346+a0001*(-1)*i1*0.0260774037134+0.1325346234;
    a1=a5*0.02083568604033;
    if(a1<0.001) a1=a1+0.0433469234896;
    a2=0.30461*a1;
    a3=0.470347*a2;
    a4=0.306463*a3;
    a5=a0001*a4*i01*0.346643634704673;
    var j=a1*0.04326974-0.034634769432*a2+0.043986739*a3-34.89679834*a4+0.004869374986*a5-a6;
    j=Math.round(j*100000000)/100000000;
    var i0001=document.getElementById("a1").innerHTML; document.getElementById("a1").innerHTML=j+" "+i0001;
    i=i+1;
    } document.getElementById("a1").innerHTML="<p>"+document.getElementById("a1").innerHTML;
    var aa001=document.getElementById("a1").innerHTML; aa001=aa001.replace(/\./g,'');
    aa001=aa001.replace(/\+/g,'');
    aa001=aa001.replace(/e/g,'');
    aa001=aa001.replace(/\-/g,'');

    document.getElementById("a1").innerHTML=aa001;

    var a=document.getElementById("a1").innerHTML;
    if(a.length>1200) { document.getElementById("a1").removeChild(document.getElementById("a1").lastChild);
    }
    }, 1);
    }

    a02();

    </script>
    </body>
    </html>




    Kr.

    Phone: 372 6861327
    E-mail: ya12983 mail c o m
    --- Synchronet 3.20a-Linux NewsLink 1.114