[Sidefx-houdini-list] Rand() glitch

calin casian calin at sidefx.com
Tue Oct 9 10:11:27 EDT 2007


What you do by ^2 it is right.
I usually multiply a float, something like rand($F * 2.756)

cheers
calin

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?
>
> Thanks.
> jb
>
>
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>   




More information about the Sidefx-houdini-list mailing list