Added randomization to operands.
merged changes.