Likely because they are two different functions - Only the same in name. One is an Hscript function the other vex.
My Guess - The Hscript one has been around for a long time before the vex context came along. But when they wrote the rand function for vex, I think they made some decisions/considerations about that to 'work better' in a vex context. Being that both functions purpose is to produce a random result - I don't think they 'felt' the need and try to keep the results the same for same seed values.
If you do need some consistency between both contexts, you should be able to go with one rand() in one context and simply reference the result for another context.
BabaJ Likely because they are two different functions - Only the same in name. One is an Hscript function the other vex.
My Guess - The Hscript one has been around for a long time before the vex context came along. But when they wrote the rand function for vex, I think they made some decisions/considerations about that to 'work better' in a vex context. Being that both functions purpose is to produce a random result - I don't think they 'felt' the need and try to keep the results the same for same seed values.
If you do need some consistency between both contexts, you should be able to go with one rand() in one context and simply reference the result for another context.
Thanks. I just curious why they produce different output. I didn't know the other is Hscript. I'm new to Houdini scripting and thought they are all vex :-).