Randomization with function

In reply to rgarcia07:

Thank you for your reply!
yes, indeed, function should be automatic. i tried to implement it as automatic at first, but i faced same result, ten tried to change it to static just to see what happens, and copied that code into this topic, sorry about that.
Anyway, the behaviour is the same, whether i use automatic or static function.

The problem here is tthat Vendor runs function only once during constraints solving, and i dont understand yet, how to solve this