removed redundant random number