remove use of abs in _random