[Sidefx-houdini-list] Rand() glitch

jlait at sidefx.com jlait at sidefx.com
Tue Oct 9 11:00:03 EDT 2007

On Tue, Oct 09, 2007 at 03:06:30PM +0100, Jordi Bares wrote:
> Hi, I am using rand() function to select randomly textures and I feed a
> different value every time (incremented by 1) and I see the rand() function
> is generating the same exact set of numbers shifted by one.
> At the moment my solution is to feed the number^2 so I shift more than 1
> pictures and avoid the repetition but it is very ugly.
> My question is... What is the best way to generate pseudo-random numbers
> based on integers?

    rand($PT + $F*$PI)

    I also recommend $E as a multiplier.
        - Jeff Lait

More information about the Sidefx-houdini-list mailing list