hscript_rand VEX function
Produces the exact same results as the Houdini expression function of the same name.
Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex
-
float hscript_rand(float seed) -
vector hscript_rand(float ) -
vector4 hscript_rand(float )
Produces the exact same results as the Houdini expression function of the same name. This function will generate different random values for every floating point seed. This is different that the random function which converts the floating point argument to an integer seed. The hscript_rand() function may produce different results on different hardware or operating systems.