POV-Ray : Newsgroups : povray.general : Real Random Numbers Server Time
26 Dec 2024 00:10:37 EST (-0500)
  Real Random Numbers (Message 1 to 10 of 10)  
From: Flynn
Subject: Real Random Numbers
Date: 25 Jan 2016 21:20:01
Message: <web.56a6d78974b56c93cd2c830e0@news.povray.org>
Hi there !

Today I developed a solution for real random numbers in the Povray-Code.
Not pseudo random...real random.

The Idea was how to include the time into Povray.
Now I have always a new picture, when I start a new rendering of it.

OK...if somebody else is also interested on real random numbers...please reply
to me.


Greetings to Povray-Users
Flynn


Post a reply to this message

From: Sven Littkowski
Subject: Re: Real Random Numbers
Date: 25 Jan 2016 21:56:59
Message: <56a6e07b@news.povray.org>
Yes, I was thinking about involving time into it, too. But then again,
two different computers and rendering at the same time - will lead again
to the same result. So, while POV-Ray gives us a pseudo random, you give
us now a pseudo pseudo random.

But don't get me wrong - I was about to have it done the same way. And
it is a good idea.

If you want to go that way further, and want to work towards the third
pseudo, you could also involve computer specs to the time-depending
random. And also things that change frequently on computers, like amount
of free HDD space and size of random-selected files also being computed
into the pseudo pseudo pseudo random.

POV-Ray's random was intentionally meant to enable everyone to produce
the same result. But taking your point, yes, it would be nice if POV-Ray
4.0 could supply us with a real random, too. :-)


Post a reply to this message

From: Flynn
Subject: Re: Real Random Numbers
Date: 25 Jan 2016 22:35:00
Message: <web.56a6e91f3b8de4ddc78bd1400@news.povray.org>
Sven Littkowski <jam### [at] yahoocom> wrote:
> Yes, I was thinking about involving time into it, too. But then again,
> two different computers and rendering at the same time - will lead again
> to the same result. So, while POV-Ray gives us a pseudo random, you give
> us now a pseudo pseudo random.
>
> But don't get me wrong - I was about to have it done the same way. And
> it is a good idea.
>
> If you want to go that way further, and want to work towards the third
> pseudo, you could also involve computer specs to the time-depending
> random. And also things that change frequently on computers, like amount
> of free HDD space and size of random-selected files also being computed
> into the pseudo pseudo pseudo random.
>
> POV-Ray's random was intentionally meant to enable everyone to produce
> the same result. But taking your point, yes, it would be nice if POV-Ray
> 4.0 could supply us with a real random, too. :-)

Hi Sven !

Thanks for your funny message !
What you wrote, that there is a reason why we get pseudo-random to produce same


But !!!!! Yeeess...the must be a BUT !

I like to make pics using random numbers to see different results, and take the
best (what I think what the best is).
So I think both options are very useful.
And 2 Computers produces the same results when they start rendering the same
time...yes...when they have exactly the same time...down to
microseconds...yes...there is always a limit for us.
And you have really great ideas to get more better
pseudo-pseudo-pseudo-pseudo-numbers using files and HDD space. Thanks for it !!!

Bye
Flynn :-)


Post a reply to this message

From: Anthony D  Baye
Subject: Re: Real Random Numbers
Date: 25 Jan 2016 23:15:00
Message: <web.56a6f2203b8de4ddfd6b6fe10@news.povray.org>
"Flynn" <pot### [at] gmxnet> wrote:
> Sven Littkowski <jam### [at] yahoocom> wrote:
> > Yes, I was thinking about involving time into it, too. But then again,
> > two different computers and rendering at the same time - will lead again
> > to the same result. So, while POV-Ray gives us a pseudo random, you give
> > us now a pseudo pseudo random.
> >
> > But don't get me wrong - I was about to have it done the same way. And
> > it is a good idea.
> >
> > If you want to go that way further, and want to work towards the third
> > pseudo, you could also involve computer specs to the time-depending
> > random. And also things that change frequently on computers, like amount
> > of free HDD space and size of random-selected files also being computed
> > into the pseudo pseudo pseudo random.
> >
> > POV-Ray's random was intentionally meant to enable everyone to produce
> > the same result. But taking your point, yes, it would be nice if POV-Ray
> > 4.0 could supply us with a real random, too. :-)
>
> Hi Sven !
>
> Thanks for your funny message !
> What you wrote, that there is a reason why we get pseudo-random to produce same

>
> But !!!!! Yeeess...the must be a BUT !
>
> I like to make pics using random numbers to see different results, and take the
> best (what I think what the best is).
> So I think both options are very useful.
> And 2 Computers produces the same results when they start rendering the same
> time...yes...when they have exactly the same time...down to
> microseconds...yes...there is always a limit for us.
> And you have really great ideas to get more better
> pseudo-pseudo-pseudo-pseudo-numbers using files and HDD space. Thanks for it !!!
>
> Bye
> Flynn :-)

There's also rand.inc which has several different random number generators.

I used it myself in my packing crate image to randomize the surface on the
iso-planks

http://news.povray.org/povray.binaries.images/thread/%3C50765d2d%40news.povray.org%3E/?ttop=404540&toff=600

and again to randomize the distribution of particles in my spray-paint macro:

http://news.povray.org/web.5083ad99befa8986d97ee2b90%40news.povray.org

Regards,
A.D.B.


Post a reply to this message

From: Flynn
Subject: Re: Real Random Numbers
Date: 25 Jan 2016 23:35:00
Message: <web.56a6f7453b8de4dd7d945c120@news.povray.org>
Ah...OK...

thanks...
Flynn


Post a reply to this message

From: clipka
Subject: Re: Real Random Numbers
Date: 25 Jan 2016 23:49:16
Message: <56a6facc$1@news.povray.org>
Am 26.01.2016 um 03:18 schrieb Flynn:

> Today I developed a solution for real random numbers in the Povray-Code.
> Not pseudo random...real random.
> 
> The Idea was how to include the time into Povray.
> Now I have always a new picture, when I start a new rendering of it.
> 
> OK...if somebody else is also interested on real random numbers...please reply
> to me.

While I hate to be a spoil-sport, I think you might be interested to
hear that POV-Ray 3.7 already has intrinsic support for this, via the
following idiom ;)

    #declare RandomSource = seed(now * FACTOR);

where FACTOR is the fraction of a day after which you are guaranteed to
get a new random sequence; e.g. FACTOR=24 gives you a new sequence every
hour, while FACTOR=24*60*60 gives you new values every second. (Larger
values may or may not work as expected, depending on the platform.)

I just noticed that this has been poorly documented though, with the
"now" keyword being only mentioned in the context of the "datetime()"
function.


Post a reply to this message

From: Sven Littkowski
Subject: Re: Real Random Numbers
Date: 26 Jan 2016 07:18:58
Message: <56a76432$1@news.povray.org>
I know the "know" keyword from PHP. Interesting. Good to know now.   :-)


Post a reply to this message

From: Kenneth
Subject: Re: Real Random Numbers
Date: 27 Jan 2016 17:25:00
Message: <web.56a941d33b8de4dd33c457550@news.povray.org>
"Anthony D. Baye" <Sha### [at] spamnomorehotmailcom> wrote:

>
> There's also rand.inc which has several different random number generators.
>

As far as I can tell, those generators are all pseudo-random too -- well,
pseudo-pseudo-pseudo....random ;-)  By using lots of tricks to get the final
values, but still based on seed(...) and rand(...)


Post a reply to this message

From: clipka
Subject: Re: Real Random Numbers
Date: 27 Jan 2016 19:14:31
Message: <56a95d67@news.povray.org>
Am 27.01.2016 um 23:18 schrieb Kenneth:
> "Anthony D. Baye" <Sha### [at] spamnomorehotmailcom> wrote:
> 
>>
>> There's also rand.inc which has several different random number generators.
>>
> 
> As far as I can tell, those generators are all pseudo-random too -- well,
> pseudo-pseudo-pseudo....random ;-)  By using lots of tricks to get the final
> values, but still based on seed(...) and rand(...)

Actually those aren't (pseudo-)random number generators in the usual
sense, nor are they intended to be, but rather macros that use a
pseudo-random number generator to generate pseudo-random numbers with
particular non-linear distributions.


Post a reply to this message

From: Kenneth
Subject: Re: Real Random Numbers
Date: 27 Jan 2016 20:35:01
Message: <web.56a96f963b8de4dd33c457550@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 27.01.2016 um 23:18 schrieb Kenneth:

> > Kennth wrote:
> >
> > As far as I can tell, those generators are all pseudo-random too -- well,
> > pseudo-pseudo-pseudo....random ;-)  By using lots of tricks to get the final
> > values, but still based on seed(...) and rand(...)
>
> Actually those aren't (pseudo-)random number generators in the usual
> sense, nor are they intended to be, but rather macros that use a
> pseudo-random number generator to generate pseudo-random numbers with
> particular non-linear distributions.

Ah yes, I see what you mean. (I've never had a need --that I know of! -- for
using such non-linear distributions. I guess I need to do some research about
such things.)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.