1. RE: Let's try this ONE more time :-)

Hi, Al.

You said:

<snip>

> 1. For two added rnd numbers the distribution should be the same.
>    It's multiplication that changes the distribution.

In fact, adding two or more random numbers *changes* the distribution.
Old FORTRAN routines used the sum of 12 random numbers (why exactly 12?
Because this was considered enough to get a good distribution) to get a
Gaussian normal distribution.

Regards.

new topic     » topic index » view message » categorize

2. RE: Let's try this ONE more time :-)

Hi Ricardo,

If you had read the posts following that in the same thread
you would have found that what i meant was, for a and b random
with range 0 to n:
a*n+b
not simply
a+b

Some other postee's had called this 'concatenation' of
two random numbers.

Ricardo M. Forno wrote:
> 
> Hi, Al.
> 
> You said:
> 
> <snip>
> 
> > 1. For two added rnd numbers the distribution should be the same.
> >    It's multiplication that changes the distribution.
> 
> In fact, adding two or more random numbers *changes* the distribution.
> Old FORTRAN routines used the sum of 12 random numbers (why exactly 12?
> Because this was considered enough to get a good distribution) to get a
> Gaussian normal distribution.
> 
> Regards.
> 
> 


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » goto parent     » topic index » view message » categorize

3. RE: Let's try this ONE more time :-)

Can you disclose your method, Rob?
Regards.
----- Original Message ----- 
From: Robert Craig <guest at RapidEuphoria.com>
To: <EUforum at topica.com>
Sent: Wednesday, July 07, 2004 1:35 PM
Subject: Re: Let's try this ONE more time smile


> 
> 
> posted by: Robert Craig <rds at RapidEuphoria.com>
> 
> Al Getz wrote:
> > By the way, anyone know the period of the current Euphoria random
> > number generator?
> 
> I believe it's something like power(2, 61).
> 
> If you had been computing one rand() per second
> since the "Big Bang", you might be getting close
> to repeating by now.
> 
> Regards,
>    Rob Craig
>    Rapid Deployment Software
>    http://www.RapidEuphoria.com
> 
> 
> 
>

new topic     » goto parent     » topic index » view message » categorize

4. RE: Let's try this ONE more time :-)

Ricardo M. Forno wrote:
> Can you disclose your method, Rob?

It's in the Interpreter source code package.

I think some people are using it for encryption,
so it's probably better that I not widely publicize
the details of how it works. It's pretty good, but 
I'm sure there are other algorithms just as good or better.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu