[Sidefx-houdini-list] Rand() glitch
jordibares at the-mill.com
Tue Oct 9 16:23:43 EDT 2007
Thanks all for the comment, I though I was mad.
BTW, this is something SideFX could wrap as a different function, don't you
Just an idea.
On 9/10/07 16:00, "jlait at sidefx.com" <jlait at sidefx.com> wrote:
> 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
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
More information about the Sidefx-houdini-list