Added randomSign.

closes #2272
Merge remote-tracking branch 'origin/master'