Constraining Variable to Random Value

I tried doing the following
Constrain Test to random(0,10)
but it doesn't seem to work? Always stays at 0
Is it possible to constrain a variable to a random value ? Seems like the only way to do it?
Thanks
Constrain Test to random(0,10)
but it doesn't seem to work? Always stays at 0
Is it possible to constrain a variable to a random value ? Seems like the only way to do it?
Thanks