|
|
> You are not only seeding the random number generator within the loop,
> you are seeding it *for every call*. You need to create one stream and
> use it.
Hmmm, I see I got confused by the documentation that used different seed
streams... This is very simple and I got it now!
> (And some general advice, always use at least one capital letter in
> variable names, to avoid possible conflict with future features...and
> indent!)
Good advice, I might not use it though, I'm used to 'i' and 'n' that way,
although I like nSegments, nPolygons, mVertex, etc...
As for indentation... that was just a sketch... ;)
Thanks a lot Chris!
Simon
--
+--------------------------------+---------------------------+
| Simon Lemieux | http://666Mhz.myip.org/ |
| Email : lem### [at] yahoocom | Povray and OpenGL Gallery |
+--------------------------------+---------------------------+
Post a reply to this message
|
|