In reply to chris_le:
I am tried your code but simulation shows assertion error(randomization fail error).
I am tried with different name but simulation shows assertion error(randomization fail error).
In transaction randomization it does not take local variable for assignment.