Re: Prng Alvo
- From: rossum <rossum48@xxxxxxxxxxxx>
- Date: Sat, 18 Apr 2009 11:17:59 +0100
On Fri, 17 Apr 2009 15:35:07 -0700 (PDT), Phoenix
<ribeiroalvo@xxxxxxxxx> wrote:
rossumAny number has exactly the same entropy as any other number. You need
I put the algorithm in this forum because I was suggested by a person
of NIST.But, also put in sci.math and almost no discussion.
About the seed 1.000000000000001, Is no entropy.
to either find a PRNG that accepts any seed or introduce a seeding
mechanism that avoids all bad seeds.
See this to put on the algorithm program:You need a probability of zero. There are already PRNGs which can
s=TIMER+256.7846736523846
IF s=INT(s) THEN s=67583.87256347297
I use this on my BASIC routine to avoid that kind of problems.
The probality of the seed to be bad, is litle.
accept any seed value.
But we all now the seeds on the PRNG are like the biologic seeds:Javascript is not the same as Java. I can write Java, I cannot write
Goods and bads.
Generate implies this: Whith a good seed and a generator, we have good
results, otherwise not.
Marsagia tell us about the bad and good seeds: The famous 6969, if I
am not wrong.
If you allow me, I ask to you a small favor. Can you colaborate white
me, making a java script to generate random integer numbers to put on
my web pag?
Javascript.
I do not no to write in java.This is the Java that I used:
static public void main(String[] args) {
// See http://www.number.com.pt/index.html
double seed = 0.06;
System.out.println("seed = " + seed);
double x = seed;
int count = 0;
for (int i = 0; i < 500; ++i) {
final double temp = x * seed;
x = temp - Math.floor(temp);
++count;
if (count == 50) {
System.out.println(x);
count = 0;
} // end if
} // end for
System.out.println();
System.out.println("Done");
} // end main()
At this point I was looking at how fast small seeds (< 1.0) converged
on zero.
rossum
Thanks
Alvo
.
- Follow-Ups:
- Re: Prng Alvo
- From: Phoenix
- Re: Prng Alvo
- References:
- Prng Alvo
- From: Phoenix
- Re: Prng Alvo
- From: pubkeybreaker
- Re: Prng Alvo
- From: Phoenix
- Re: Prng Alvo
- From: rossum
- Re: Prng Alvo
- From: Phoenix
- Re: Prng Alvo
- From: rossum
- Re: Prng Alvo
- From: Phoenix
- Prng Alvo
- Prev by Date: Re: Prng Alvo
- Next by Date: Re: Prng Alvo
- Previous by thread: Re: Prng Alvo
- Next by thread: Re: Prng Alvo
- Index(es):
Relevant Pages
|