Squashed commit of the following:

commit b4a80b6bad5a13386712153e94db7d230bc97de6
Author: RashmiDR <rashmi@datatorrent.com>
Date:   Tue Feb 25 13:03:56 2014 -0800

    optimizing RandomWordGenerator to improve performance, fixes #MLHR-830