|
![](/i/fill.gif) |
> Do you make that in C++ as well? That is, something like:
>
> for(int i=0; i<n; ++i)
> {
> srand(i);
> int x = rand();
> srand(i+1);
> int y = rand();
> }
>
> I suppose not. But that's what you are doing in the povray code.
Yeah I know this looks extremely silly! I was just confused from the manual
that used more than one seed at a time.. So I thought that you needed a new seed
for every rand()... That's the reason why I prefered C++, but now that I
understand how it works, I realized I was just dumb!
Thanks,
Simon
--
+--------------------------------+---------------------------+
| Simon Lemieux | http://666Mhz.myip.org/ |
| Email : lem### [at] yahoo com | Povray and OpenGL Gallery |
+--------------------------------+---------------------------+
Post a reply to this message
|
![](/i/fill.gif) |