|
|
"bgimeno" <bgimeno[at]persistencia[dot]org> wrote:
> While experimenting with the function rand () to simulate a random
> distribution of trees...
> #local Num_Tree = 0 ;
> #while (Num_Tree<1000)
> #local rnd_tree = seed (Num_Tree);
> #if (rand (rnd_tree)<.95 )
> object {Tree
> translate <50*rand(rnd_tree),0,0>
> rotate y*360*rand(rnd_tree)
> }
> #end
> #local Num_Tree = Num_Tree +1 ;
> #end
>
I don't understand the reason for this line, as it doesn't really do anything:
> #if (rand (rnd_tree)<.95 )
The only effect is throw the count of trees off, since it pulls a number from
the stream, compares it, either places a tree or doesn't, but updates the
counter regardless.
-Reactor
Post a reply to this message
|
|