Removes one more rand() use.