|
|
Greg M. Johnson wrote:
> Okay. To restate, say I do this:
>
> #declare RRR=seed(frame_number);
> #declare a01=rand(RRR);
> #declare a02=rand(RRR);
> #declare a03=rand(RRR);
> #declare a04=rand(RRR);
> #declare a05=rand(RRR);
> #declare a06=rand(RRR);
> #declare a07=rand(RRR);
> #declare a08=rand(RRR);
> #declare a09=rand(RRR);
> #declare a10=rand(RRR);
> ...
> #declare an=rand(RRR);
>
>
> Then for some n, n<20, if I then go plot out the values of an [in one
> curve for each n]
> as a function of frame_number when rendered, one of those values
> [one of those *curves* not values - a value can't be a line] would be a
> straight line.
> One but surely not all.
After trying to make sense of this sentence I think I understand what you
mean and I'd say it's correct.
> That's not exactly predictable but it's entirely non random.
I think that Warp just meant something along the lines that no sequence
generated by a computer is *really* non-predictable. I don't see how that's
relevant for this discussion though.
I think the conclusion is that what you have found is not a bug, and you can
get the behavior you want either by using workarounds with sin and cos as
you have done, or by writing a large number of random numbers to a file
(using a single random stream) and then reading the first of these numbers
in your first frame, the second in the second and so on. Then you can
multiply the numbers in this random sequence and use them as new seeds.
Rune
--
http://runevision.com
Post a reply to this message
|
|