Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #18537 > unrolled thread

Getting random numbers.

Started byH E <rob99999999999999999@gmail.com>
First post2021-01-21 19:09 -0800
Last post2023-01-23 15:46 -0800
Articles 20 on this page of 23 — 8 participants

Back to article view | Back to comp.lang.php


Contents

  Getting random numbers. H E <rob99999999999999999@gmail.com> - 2021-01-21 19:09 -0800
    Re: Getting random numbers. Luuk <luuk34@gmail.com> - 2021-01-23 12:00 +0100
      Re: Getting random numbers. "J.O. Aho" <user@example.net> - 2021-01-23 13:56 +0100
        Re: Getting random numbers. H e <he12457@hotmail.com> - 2021-01-23 08:58 -0800
          Re: Getting random numbers. H e <he12457@hotmail.com> - 2021-01-23 09:11 -0800
            Re: Getting random numbers. H e <he12457@hotmail.com> - 2021-01-23 09:41 -0800
          Re: Getting random numbers. Jerry Stuckle <jstucklex@attglobal.net> - 2021-01-24 11:00 -0500
            Re: Getting random numbers. H e <he12457@hotmail.com> - 2021-01-25 14:49 -0800
              Re: Getting random numbers. Jerry Stuckle <jstucklex@attglobal.net> - 2021-01-26 11:12 -0500
                Re: Getting random numbers. H e <he12457@hotmail.com> - 2021-01-29 14:05 -0800
                  Re: Getting random numbers. Jerry Stuckle <jstucklex@attglobal.net> - 2021-01-30 19:19 -0500
                    Re: Getting random numbers. H E <rob99999999999999999@gmail.com> - 2021-01-30 20:13 -0800
                      Re: Getting random numbers. H E <rob99999999999999999@gmail.com> - 2021-01-30 20:15 -0800
                      Re: Getting random numbers. Jerry Stuckle <jstucklex@attglobal.net> - 2021-01-31 20:38 -0500
        Re: Getting random numbers. V <he12091983@gmail.com> - 2023-01-16 03:49 -0800
      Re: Getting random numbers. H e <he12457@hotmail.com> - 2021-01-23 08:51 -0800
    Re: Getting random numbers. V V V V V <ya00000100000@worker.com> - 2023-01-15 01:30 -0800
    Re: Getting random numbers. V <he12091983@gmail.com> - 2023-01-16 03:50 -0800
    Re: Getting random numbers. V <he12091983@gmail.com> - 2023-01-17 00:02 -0800
    Re: Getting random numbers. V V V V V V V V V V V V V V V V V V V V V V V V V <VVVVVVVVVVV00@mail2cool.com> - 2023-01-23 15:19 -0800
    Re: Getting random numbers. V V V V V V V V V V V V V V V V V V V V V V V V V <VVVVVVVVVVV00@mail2cool.com> - 2023-01-23 15:21 -0800
    Re: Getting random numbers. V V V V V V V V V V V V V V V V V V V V V V V V V <VVVVVVVVVVV00@mail2cool.com> - 2023-01-23 15:43 -0800
    Re: Getting random numbers. V V V V V V V V V V V V V V V V V V V V V V V V V <VVVVVVVVVVV00@mail2cool.com> - 2023-01-23 15:46 -0800

Page 1 of 2  [1] 2  Next page →


#18537 — Getting random numbers.

FromH E <rob99999999999999999@gmail.com>
Date2021-01-21 19:09 -0800
SubjectGetting random numbers.
Message-ID<de948ae9-ab90-45dc-a54f-253f98e4b720n@googlegroups.com>
I am writing this, because JavaScript Math.random() seems to be a bit slow.
If the php random number maker is also too slow, then this could help.

<html>
<body>
<div id="aa1" style="width: 100%;word-break:break-word;">
</div>
<script>
var a1=Math.random()*101;
var a2=Math.random()*101;
var a3=Math.random()*101;
var a4=Math.random()*101;
var a5=Math.random()*101;
var a6=Math.random()*101;
document.getElementById("aa1").append(a1+a2+a3+a4+a5+a6);
var a0001=-1;
for(var i=0; i<99999; i++) {
a0001=(-1)*a0001;
var i01=i*0.0114643966346+i*0.0260774037134+0.1325346234;
a1=a5*0.020604033;
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-0.3489679834*a4+0.04869374986*a5-a6;
document.getElementById("aa1").append(j);
}
var aa001=document.getElementById("aa1").innerHTML;
aa001=aa001.replace(/\./g,'');
aa001=aa001.replace(/\+/g,'');
aa001=aa001.replace(/e/g,'');
aa001=aa001.replace(/\-/g,'');
document.getElementById("aa1").innerHTML=aa001;
</script>


Kr.

Phone: 372 6861327
E-mail: ya12983 mail c o m

[toc] | [next] | [standalone]


#18538

FromLuuk <luuk34@gmail.com>
Date2021-01-23 12:00 +0100
Message-ID<rugvkj$62r$1@dont-email.me>
In reply to#18537
On 22-1-2021 04:09, H E wrote:
> I am writing this, because JavaScript Math.random() seems to be a bit slow.
> If the php random number maker is also too slow, then this could help.
> 

Why do, almost all, 'random numbers' start with the same 2 digits?

[toc] | [prev] | [next] | [standalone]


#18539

From"J.O. Aho" <user@example.net>
Date2021-01-23 13:56 +0100
Message-ID<i72knbFgklU1@mid.individual.net>
In reply to#18538
On 23/01/2021 12.00, Luuk wrote:
> On 22-1-2021 04:09, H E wrote:
>> I am writing this, because JavaScript Math.random() seems to be a bit 
>> slow.
>> If the php random number maker is also too slow, then this could help.
>>
> 
> Why do, almost all, 'random numbers' start with the same 2 digits?

The extra "randomness" he adds makes the result to limit towards the 
average of the range of the randomness.

-- 

  //Aho

[toc] | [prev] | [next] | [standalone]


#18542

FromH e <he12457@hotmail.com>
Date2021-01-23 08:58 -0800
Message-ID<7b7c7bd6-795e-43ba-9de8-9aff7eec73c2n@googlegroups.com>
In reply to#18539
J.O. Aho kirjutas laupäev, 23. jaanuar 2021 kl 14:56:18 UTC+2:
> On 23/01/2021 12.00, Luuk wrote: 
> > On 22-1-2021 04:09, H E wrote: 
> >> I am writing this, because JavaScript Math.random() seems to be a bit 
> >> slow. 
> >> If the php random number maker is also too slow, then this could help. 
> >> 
> > 
> > Why do, almost all, 'random numbers' start with the same 2 digits?
> The extra "randomness" he adds makes the result to limit towards the 
> average of the range of the randomness. 
> 
Basically it is a function, which turn slowly created random numbers to a stream of random numbers.
Who does not know the function, will never know, how they were created.
It can be used, when crypting very important messages.



He

E-mail: ya12983 mail c o m
Phone: 372 6861327

[toc] | [prev] | [next] | [standalone]


#18543

FromH e <he12457@hotmail.com>
Date2021-01-23 09:11 -0800
Message-ID<c91c39d8-894e-404c-a427-76d83ce0d163n@googlegroups.com>
In reply to#18542
Started to use now first variable a1 too.

<html>
<body>
<div id="aa1" style="width: 100%;word-break:break-word;">
</div>
<script>
var a1=Math.random()*101;
var a2=Math.random()*101;
var a3=Math.random()*101;
var a4=Math.random()*101;
var a5=Math.random()*101;
var a6=Math.random()*101;
document.getElementById("aa1").append(a1+a2+a3+a4+a5+a6);
var a0001=-1;
for(var i=0; i<99999; i++) {
a0001=(-1)*a0001;
var i01=i*0.0114643966346+i*0.0260774037134+0.1325346234;
a1=a1*a5*0.020604033;
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-0.3489679834*a4+0.04869374986*a5-a6;
document.getElementById("aa1").append(j);
}
var aa001=document.getElementById("aa1").innerHTML;
aa001=aa001.replace(/\./g,'');
aa001=aa001.replace(/\+/g,'');
aa001=aa001.replace(/e/g,'');
aa001=aa001.replace(/\-/g,'');
document.getElementById("aa1").innerHTML=aa001;
</script>

</body>
</html>


He

Phone: 372 6861327
E-mail: ya12983 mail c o m

[toc] | [prev] | [next] | [standalone]


#18544

FromH e <he12457@hotmail.com>
Date2021-01-23 09:41 -0800
Message-ID<6c161f3f-8c8a-4866-8c37-5b2e2839f7a9n@googlegroups.com>
In reply to#18543
Simpler:


<html>
<body>
<div id="aa1" style="width: 100%;word-break:break-word;">
</div>
<script>
var a1=Math.random()*101;
a1=Math.round(a1*100000000)/1000000000;
for(var i=0; i<9999; i++) {
var i01=i*0.01142626643966346+i*0.0260774037134+0.1325346234;
a1=a1*a1*0.02060875985444033;
if(a1<0.001) a1=a1+0.0433469234896;
if(a1>10000000) a1=a1*0.000000439873469234896;
var j=a1*0.0432697460960975875*i01;
j=Math.round(j*100000000)/100000000; 
document.getElementById("aa1").append(j);
}
var aa001=document.getElementById("aa1").innerHTML;
aa001=aa001.replace(/\./g,'');
aa001=aa001.replace(/\+/g,'');
aa001=aa001.replace(/e/g,'');
aa001=aa001.replace(/\-/g,'');
document.getElementById("aa1").innerHTML=aa001;
</script>

</body>
</html>


He

Phone: 372 6861327
E-mail: ya12983 mail c o m

[toc] | [prev] | [next] | [standalone]


#18546

FromJerry Stuckle <jstucklex@attglobal.net>
Date2021-01-24 11:00 -0500
Message-ID<ruk5ik$u0a$1@jstuckle.eternal-september.org>
In reply to#18542
On 1/23/2021 11:58 AM, H e wrote:
> J.O. Aho kirjutas laupäev, 23. jaanuar 2021 kl 14:56:18 UTC+2:
>> On 23/01/2021 12.00, Luuk wrote:
>>> On 22-1-2021 04:09, H E wrote:
>>>> I am writing this, because JavaScript Math.random() seems to be a bit
>>>> slow.
>>>> If the php random number maker is also too slow, then this could help.
>>>>
>>>
>>> Why do, almost all, 'random numbers' start with the same 2 digits?
>> The extra "randomness" he adds makes the result to limit towards the
>> average of the range of the randomness.
>>
> Basically it is a function, which turn slowly created random numbers to a stream of random numbers.
> Who does not know the function, will never know, how they were created.
> It can be used, when crypting very important messages.
> 
> 
> 
> He
> 
> E-mail: ya12983 mail c o m
> Phone: 372 6861327
> 

This is JavaScript, not PHP.  And anyone who looks at the source code 
for the page can see how the random numbers were created.

You really don't have any clue, do you?

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#18548

FromH e <he12457@hotmail.com>
Date2021-01-25 14:49 -0800
Message-ID<aaba703e-87cb-426b-940d-946070e50f7fn@googlegroups.com>
In reply to#18546
Jerry Stuckle kirjutas pühapäev, 24. jaanuar 2021 kl 18:00:27 UTC+2:
> On 1/23/2021 11:58 AM, H e wrote: 
> > J.O. Aho kirjutas laupäev, 23. jaanuar 2021 kl 14:56:18 UTC+2: 
> >> On 23/01/2021 12.00, Luuk wrote: 
> >>> On 22-1-2021 04:09, H E wrote: 
> >>>> I am writing this, because JavaScript Math.random() seems to be a bit 
> >>>> slow. 
> >>>> If the php random number maker is also too slow, then this could help. 
> >>>> 
> >>> 
> >>> Why do, almost all, 'random numbers' start with the same 2 digits? 
> >> The extra "randomness" he adds makes the result to limit towards the 
> >> average of the range of the randomness. 
> >> 
> > Basically it is a function, which turn slowly created random numbers to a stream of random numbers. 
> > Who does not know the function, will never know, how they were created. 
> > It can be used, when crypting very important messages. 
> > 
> > 
> > 
> > He 
> > 
> > E-mail: ya12983 mail c o m 
> > Phone: 372 6861327 
> >
> This is JavaScript, not PHP. And anyone who looks at the source code 
> for the page can see how the random numbers were created. 
> 
> You really don't have any clue, do you? 
> 
> -- 
> ================== 
> Remove the "x" from my email address 
> Jerry Stuckle 
> jstu...@attglobal.net 
> ==================

I wrote up there, that "if php has same problem".
Nobody sees php script...




Kristjan Robam

ya12983 mail co m
372 6861327

[toc] | [prev] | [next] | [standalone]


#18550

FromJerry Stuckle <jstucklex@attglobal.net>
Date2021-01-26 11:12 -0500
Message-ID<rupf23$5ei$1@jstuckle.eternal-september.org>
In reply to#18548
On 1/25/2021 5:49 PM, H e wrote:
> Jerry Stuckle kirjutas pühapäev, 24. jaanuar 2021 kl 18:00:27 UTC+2:
>> On 1/23/2021 11:58 AM, H e wrote:
>>> J.O. Aho kirjutas laupäev, 23. jaanuar 2021 kl 14:56:18 UTC+2:
>>>> On 23/01/2021 12.00, Luuk wrote:
>>>>> On 22-1-2021 04:09, H E wrote:
>>>>>> I am writing this, because JavaScript Math.random() seems to be a bit
>>>>>> slow.
>>>>>> If the php random number maker is also too slow, then this could help.
>>>>>>
>>>>>
>>>>> Why do, almost all, 'random numbers' start with the same 2 digits?
>>>> The extra "randomness" he adds makes the result to limit towards the
>>>> average of the range of the randomness.
>>>>
>>> Basically it is a function, which turn slowly created random numbers to a stream of random numbers.
>>> Who does not know the function, will never know, how they were created.
>>> It can be used, when crypting very important messages.
>>>
>>>
>>>
>>> He
>>>
>>> E-mail: ya12983 mail c o m
>>> Phone: 372 6861327
>>>
>> This is JavaScript, not PHP. And anyone who looks at the source code
>> for the page can see how the random numbers were created.
>>
>> You really don't have any clue, do you?
>>
>> -- 
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> jstu...@attglobal.net
>> ==================
> 
> I wrote up there, that "if php has same problem".
> Nobody sees php script...
> 
> 
> 
> 
> Kristjan Robam
> 
> ya12983 mail co m
> 372 6861327
> 

And your crap has no business in this newsgroup.

You're only hurting yourself by posting poor code and unrelated bs to 
this newsgroup.


-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#18562

FromH e <he12457@hotmail.com>
Date2021-01-29 14:05 -0800
Message-ID<e08c0ce3-571b-467c-b945-846707521750n@googlegroups.com>
In reply to#18550
I am having no company at the moment.
Would You be pleased to hire me as a programmer or it specialist?
My salary expectation: 900 euros in a month.






Kristjan Robam

ya12983 ma il co m (mail . com)

[toc] | [prev] | [next] | [standalone]


#18564

FromJerry Stuckle <jstucklex@attglobal.net>
Date2021-01-30 19:19 -0500
Message-ID<rv4t1v$ap7$1@jstuckle.eternal-september.org>
In reply to#18562
On 1/29/2021 5:05 PM, H e wrote:
> I am having no company at the moment.
> Would You be pleased to hire me as a programmer or it specialist?
> My salary expectation: 900 euros in a month.
> 
> 
> 
> 
> 
> 
> Kristjan Robam
> 
> ya12983 ma il co m (mail . com)
> 

Not a chance.  I sometimes look for programmers but I want someone who 
can produce good, clean code.
Not someone who spams usenet with poor quality code.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#18566

FromH E <rob99999999999999999@gmail.com>
Date2021-01-30 20:13 -0800
Message-ID<c2b23d51-354f-4c15-9459-3a7153d532dcn@googlegroups.com>
In reply to#18564
Jerry Stuckle kirjutas pühapäev, 31. jaanuar 2021 kl 02:19:18 UTC+2:
> On 1/29/2021 5:05 PM, H e wrote: 
> > I am having no company at the moment. 
> > Would You be pleased to hire me as a programmer or it specialist? 
> > My salary expectation: 900 euros in a month. 
> > 
> > 
> > 
> > 
> > 
> > 
> > Kristjan Robam 
> > 
> > ya12983 ma il co m (mail . com) 
> >
> Not a chance. I sometimes look for programmers but I want someone who 
> can produce good, clean code. 
> Not someone who spams usenet with poor quality code.
> -- 
> ================== 
> Remove the "x" from my email address 
> Jerry Stuckle 
> jstu...@attglobal.net 
> ==================

You don't know then, what are you missing.




Khrichtjan Robham

ya12983 ma il co m (mail . com)

[toc] | [prev] | [next] | [standalone]


#18567

FromH E <rob99999999999999999@gmail.com>
Date2021-01-30 20:15 -0800
Message-ID<11579fb9-6574-4ee5-9220-636843096a6bn@googlegroups.com>
In reply to#18566
What are you pointing, when You say it ?
What is wrong in my code ?




Khrichtjan Robham

ya12983 ma il co m (mail . com)

[toc] | [prev] | [next] | [standalone]


#18573

FromJerry Stuckle <jstucklex@attglobal.net>
Date2021-01-31 20:38 -0500
Message-ID<rv7m34$gr5$1@jstuckle.eternal-september.org>
In reply to#18566
On 1/30/2021 11:13 PM, H E wrote:
> Jerry Stuckle kirjutas pühapäev, 31. jaanuar 2021 kl 02:19:18 UTC+2:
>> On 1/29/2021 5:05 PM, H e wrote:
>>> I am having no company at the moment.
>>> Would You be pleased to hire me as a programmer or it specialist?
>>> My salary expectation: 900 euros in a month.
>>>
>>>
>>>
>>>
>>>
>>>
>>> Kristjan Robam
>>>
>>> ya12983 ma il co m (mail . com)
>>>
>> Not a chance. I sometimes look for programmers but I want someone who
>> can produce good, clean code.
>> Not someone who spams usenet with poor quality code.
> 
> You don't know then, what are you missing.
> 
> 
> 
> 
> Khrichtjan Robham
> 
> ya12983 ma il co m (mail . com)
> 

Oh, I know EXACTLY what I am missing.  That's why I'm not interested.

Maybe if you got rid of the attitude and tried to actually learn how to 
write good code you could get a job.

And if you got a real newsreader instead of posting vie Google Groups 
someone might take you a bit more seriously.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#19267

FromV <he12091983@gmail.com>
Date2023-01-16 03:49 -0800
Message-ID<c722beb9-4155-4f47-b3a1-7bf33a87cf58n@googlegroups.com>
In reply to#18539
https://playcode.io/1063810


On Saturday, January 23, 2021 at 2:56:18 PM UTC+2, J.O. Aho wrote:
> On 23/01/2021 12.00, Luuk wrote: 
> > On 22-1-2021 04:09, H E wrote: 
> >> I am writing this, because JavaScript Math.random() seems to be a bit 
> >> slow. 
> >> If the php random number maker is also too slow, then this could help. 
> >> 
> > 
> > Why do, almost all, 'random numbers' start with the same 2 digits?
> The extra "randomness" he adds makes the result to limit towards the 
> average of the range of the randomness. 
> 
> -- 
> 
> //Aho

[toc] | [prev] | [next] | [standalone]


#18541

FromH e <he12457@hotmail.com>
Date2021-01-23 08:51 -0800
Message-ID<4f3094c5-bc92-468b-b2f6-de7153e3538dn@googlegroups.com>
In reply to#18538
Luuk kirjutas laupäev, 23. jaanuar 2021 kl 13:00:41 UTC+2:
> On 22-1-2021 04:09, H E wrote: 
> > I am writing this, because JavaScript Math.random() seems to be a bit slow. 
> > If the php random number maker is also too slow, then this could help. 
> >
> Why do, almost all, 'random numbers' start with the same 2 digits?


Look at this code:

https://codepen.io/ya12983/full/jOMopKr



Code itself:
<html>
<head>
<style>
body {
height: 98%;
color:white;
background-color: lightblue;
}
#a1 {
width: 100%;
height: 100%;
font-size: 12px;
font-weight: bold;
overflow-y:hidden;
line-height:12px;
margin-top:0%;
word-wrap:break-word;
}

p {
height: 1px;
}
</style>
</head>
<body>

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

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

if(i>10000) {
i=1;
}
var a0001=-1;
var i000001=i;
for(var i1=i; i1<i000001+8; i1++) {
a0001=(-1)*a0001;
var i01=a0001*(-1)*i1*0.0114643966346+a0001*(-1)*i1*0.0260774037134+0.1325346234;
a1=a5*0.0257258682083568604033;
if(a1<0.000001) a1=a1*(-1)*43346.9234896;
if(a1>1000000000) a1=a1*0.000000433469234896;
a2=-1.3027472561*a1;
a3=0.470257347*a2;
a4=-1.302572576463*a3;
a5=a0001*a4*i01*2.346643634704673;
var j=a1*0.043267257974-0.034634769432*a2+0.043986739*a3-442.89679834*a4+486.9374986*a5+a6;
j=Math.round(j*1000000000)/1000000000;
var i0001=document.getElementById("a1").innerText;
document.getElementById("a1").innerText=j+i0001;
i=i+1;
}


var aa001=document.getElementById("a1").innerText;
aa001=aa001.replace(/\./g,'');
aa001=aa001.replace(/\+/g,'');
aa001=aa001.replace(/e/g,'');
aa001=aa001.replace(/\-/g,'');

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

var a=document.getElementById("a1").innerText;
if(a.length>12900) {
document.getElementById("a1").innerText=a.slice(0, -200);
}
}, 1);
}

a02();

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


He

E-mail: ya12983 mail c o m
Phone: 372 6861327

[toc] | [prev] | [next] | [standalone]


#19264

FromV V V V V <ya00000100000@worker.com>
Date2023-01-15 01:30 -0800
Message-ID<0c467ded-050e-4694-a0c7-c043cb3eadd1n@googlegroups.com>
In reply to#18537
Improved version:

<html>
<body>
<div id="aa1" style="width: 100%;word-break:break-word;">
</div>
<script>
var a1=Math.random()*754234711;
a1=Math.round(a1*100000000)/1000000000;
for(var i=0; i<876; i++) {
var i01=i*0.731426267474109624769827343137436966346+0.01325343709641827386927342746234;
a1=a1*a1*2.68759619024378609842785463032;
if(a1<0.001) a1=a1+0.3346939018674269877173234896;
if(a1>10000000) a1=(a1%10000000)*0.03543987313198467428963279406273498673469234896;
var j=a1*0.543269746734721340921438965875*i01;
j=Math.round(j*100000000)/100000000;
document.getElementById("aa1").append(j);
}
var aa001=document.getElementById("aa1").innerHTML;
aa001=aa001.replace(/\./g,'');
aa001=aa001.replace(/\+/g,'');
aa001=aa001.replace(/e/g,'');
aa001=aa001.replace(/\-/g,'');
document.getElementById("aa1").innerHTML=aa001;
</script>

</body>
</html>

On Friday, January 22, 2021 at 5:09:44 AM UTC+2, H E wrote:
> I am writing this, because JavaScript Math.random() seems to be a bit slow. 
> If the php random number maker is also too slow, then this could help. 
> 
> <html> 
> <body> 
> <div id="aa1" style="width: 100%;word-break:break-word;"> 
> </div> 
> <script> 
> var a1=Math.random()*101; 
> var a2=Math.random()*101; 
> var a3=Math.random()*101; 
> var a4=Math.random()*101; 
> var a5=Math.random()*101; 
> var a6=Math.random()*101; 
> document.getElementById("aa1").append(a1+a2+a3+a4+a5+a6); 
> var a0001=-1; 
> for(var i=0; i<99999; i++) { 
> a0001=(-1)*a0001; 
> var i01=i*0.0114643966346+i*0.0260774037134+0.1325346234; 
> a1=a5*0.020604033; 
> 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-0.3489679834*a4+0.04869374986*a5-a6; 
> document.getElementById("aa1").append(j); 
> } 
> var aa001=document.getElementById("aa1").innerHTML; 
> aa001=aa001.replace(/\./g,''); 
> aa001=aa001.replace(/\+/g,''); 
> aa001=aa001.replace(/e/g,''); 
> aa001=aa001.replace(/\-/g,''); 
> document.getElementById("aa1").innerHTML=aa001; 
> </script> 
> 
> 
> Kr. 
> 
> Phone: 372 6861327 
> E-mail: ya12983 mail c o m

[toc] | [prev] | [next] | [standalone]


#19268

FromV <he12091983@gmail.com>
Date2023-01-16 03:50 -0800
Message-ID<346a60f3-c5ad-4ab6-94b7-6b5fd59b9906n@googlegroups.com>
In reply to#18537
Live:

https://playcode.io/1063810




On Friday, January 22, 2021 at 5:09:44 AM UTC+2, H E wrote:
> I am writing this, because JavaScript Math.random() seems to be a bit slow. 
> If the php random number maker is also too slow, then this could help. 
> 
> <html> 
> <body> 
> <div id="aa1" style="width: 100%;word-break:break-word;"> 
> </div> 
> <script> 
> var a1=Math.random()*101; 
> var a2=Math.random()*101; 
> var a3=Math.random()*101; 
> var a4=Math.random()*101; 
> var a5=Math.random()*101; 
> var a6=Math.random()*101; 
> document.getElementById("aa1").append(a1+a2+a3+a4+a5+a6); 
> var a0001=-1; 
> for(var i=0; i<99999; i++) { 
> a0001=(-1)*a0001; 
> var i01=i*0.0114643966346+i*0.0260774037134+0.1325346234; 
> a1=a5*0.020604033; 
> 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-0.3489679834*a4+0.04869374986*a5-a6; 
> document.getElementById("aa1").append(j); 
> } 
> var aa001=document.getElementById("aa1").innerHTML; 
> aa001=aa001.replace(/\./g,''); 
> aa001=aa001.replace(/\+/g,''); 
> aa001=aa001.replace(/e/g,''); 
> aa001=aa001.replace(/\-/g,''); 
> document.getElementById("aa1").innerHTML=aa001; 
> </script> 
> 
> 
> Kr. 
> 
> Phone: 372 6861327 
> E-mail: ya12983 mail c o m

[toc] | [prev] | [next] | [standalone]


#19269

FromV <he12091983@gmail.com>
Date2023-01-17 00:02 -0800
Message-ID<4536fa80-5beb-487c-96fa-cfb55cfe6a45n@googlegroups.com>
In reply to#18537
https://gettingfacts.w3spaces.com/saved-from-Tryit-2023-01-17.html


H E kirjutas Reede, 22. jaanuar 2021 kl 05:09:44 UTC+2:
> I am writing this, because JavaScript Math.random() seems to be a bit slow. 
> If the php random number maker is also too slow, then this could help. 
> 
> <html> 
> <body> 
> <div id="aa1" style="width: 100%;word-break:break-word;"> 
> </div> 
> <script> 
> var a1=Math.random()*101; 
> var a2=Math.random()*101; 
> var a3=Math.random()*101; 
> var a4=Math.random()*101; 
> var a5=Math.random()*101; 
> var a6=Math.random()*101; 
> document.getElementById("aa1").append(a1+a2+a3+a4+a5+a6); 
> var a0001=-1; 
> for(var i=0; i<99999; i++) { 
> a0001=(-1)*a0001; 
> var i01=i*0.0114643966346+i*0.0260774037134+0.1325346234; 
> a1=a5*0.020604033; 
> 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-0.3489679834*a4+0.04869374986*a5-a6; 
> document.getElementById("aa1").append(j); 
> } 
> var aa001=document.getElementById("aa1").innerHTML; 
> aa001=aa001.replace(/\./g,''); 
> aa001=aa001.replace(/\+/g,''); 
> aa001=aa001.replace(/e/g,''); 
> aa001=aa001.replace(/\-/g,''); 
> document.getElementById("aa1").innerHTML=aa001; 
> </script> 
> 
> 
> Kr. 
> 
> Phone: 372 6861327 
> E-mail: ya12983 mail c o m

[toc] | [prev] | [next] | [standalone]


#19280

FromV V V V V V V V V V V V V V V V V V V V V V V V V <VVVVVVVVVVV00@mail2cool.com>
Date2023-01-23 15:19 -0800
Message-ID<6b7a2664-928f-4084-ad5a-283726d99d2en@googlegroups.com>
In reply to#18537
Using random of randoms :


<html>
<body>
<div id="aa1" style="width: 100%;word-break:break-word;">
</div>
<script>

var a1=new Array(52687126587,68247581,4867128456,614875687,
641875687,6842158726,683428756,4721868765,61475981,61465879,6271485687,
6893471894,614268757,681247586917,6248756812756,621876826,62781456876,
69428167,6128975869,642891679,628147689,6291488697,62875826,612876189,621879,
648927189,126489,621847692796,210367209367985,62148967189);
var a2=a1[(Math.round(Math.random()*62684365814785))%13];
var a3=Math.round(a2*100000000)/1000000000;
for(var i=0; i<8765; i++) {
var i01=i*0.14262643962385729346+i*0.2607278697594037134+0.132536823975846234;
a3=a3*a3*0.2687598683496729855403;
if(a3<0.001) a3=a3+0.43469234896;
if(a3>10000000) a3=a3%6719846984618;
var j=a3*0.43269746960975875*i01%672189578615287;
j=(Math.round(j*100000000)/100000000)%62839464276;
document.getElementById("aa1").append(j);
}
var aa001=document.getElementById("aa1").innerHTML;
aa001=aa001.replace(/\./g,'');
aa001=aa001.replace(/\+/g,'');
aa001=aa001.replace(/e/g,'');
aa001=aa001.replace(/\-/g,'');
document.getElementById("aa1").innerHTML=aa001;
</script>

</body>
</html>


On Friday, January 22, 2021 at 5:09:44 AM UTC+2, H E wrote:
> I am writing this, because JavaScript Math.random() seems to be a bit slow. 
> If the php random number maker is also too slow, then this could help. 
> 
> <html> 
> <body> 
> <div id="aa1" style="width: 100%;word-break:break-word;"> 
> </div> 
> <script> 
> var a1=Math.random()*101; 
> var a2=Math.random()*101; 
> var a3=Math.random()*101; 
> var a4=Math.random()*101; 
> var a5=Math.random()*101; 
> var a6=Math.random()*101; 
> document.getElementById("aa1").append(a1+a2+a3+a4+a5+a6); 
> var a0001=-1; 
> for(var i=0; i<99999; i++) { 
> a0001=(-1)*a0001; 
> var i01=i*0.0114643966346+i*0.0260774037134+0.1325346234; 
> a1=a5*0.020604033; 
> 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-0.3489679834*a4+0.04869374986*a5-a6; 
> document.getElementById("aa1").append(j); 
> } 
> var aa001=document.getElementById("aa1").innerHTML; 
> aa001=aa001.replace(/\./g,''); 
> aa001=aa001.replace(/\+/g,''); 
> aa001=aa001.replace(/e/g,''); 
> aa001=aa001.replace(/\-/g,''); 
> document.getElementById("aa1").innerHTML=aa001; 
> </script> 
> 
> 
> Kr. 
> 
> Phone: 372 6861327 
> E-mail: ya12983 mail c o m

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | comp.lang.php


csiph-web